Skip to content

Feature request: scoped tags #28

@asinghvi17

Description

@asinghvi17

I often have the scenario where I have nested tag areas, where all tests in that block should share a tag:

@testset "Angle based testing" begin
@testset "Radian testing" begin
# tests here
end
@testset "Degree testing" begin
# tests here
end
end

Let's say that I want to convert these to TestItems - I would then have to do

@testitem "Radian testing 1" tags=["Angle", "Radian"] begin
end

and so on and so forth. This goes on for five or ten layers if I want very granular test items, so it's not trivial or readable to keep writing these.

Would it be possible / desired to build out a macro, maybe @testtag, with which I could do:

@testtag "Angle" begin
@testtag "Radian" begin
# radian test items
end
@testtag "Degree" begin
# degree test items
end
end

for the same result?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions