@testset "Group 1" begin
@test ...
@test ...
end
@testset "Group 2" begin
...
end
Is there any way to only test a specific group like Pkg.test("Foo", "Group 1")? This is particularly convenient for when we are designing tests and do not want to rerun the entire test suite.
P.S.: Discourse is a major improvement over Google Groups, I liked it! How to create new tags for a topic? I couldn’t tag this post as “testing” for instance.
It might not be quite what you’re looking for, but I’ve implemented something similar in the TestSetExtensions package. If you split up your tests into files the @includetests macro takes an argument for which tests to run. This is more useful when running your tests from the command line than the REPL though.