Test specific test sets in Julia v0.5



In Julia v0.5 we can group tests with

@testset "Group 1" begin
  @test ...
  @test ...

@testset "Group 2" begin

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.


You need to have a trust level of 3 or higher to create a new tag.

What are trust levels?


https://github.com/JuliaLang/julia/issues/15404 is probably what you’re looking for.


OFF-TOPIC: For a description of how Discourse trust levels apply specifically to Julia community, read Roles.


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.


@mike that is exactly it, thank you.