How to run specific testsets in a test script?

Is there a build in or preferred way to run a specific testset in a script, based on e.g. the testset’s description, as opposed to running all testsets in the script?

In many packages, see e.g. LightGraphs.jl, seem to have different tests divided into separate scripts to handle this. However, it would be nice when doing test driven dev of specific parts to just run one or a few testsets in a script (I currently do this using inconvenient if-statements).

1 Like

There is some functionality for selectively running tests in

Making the test files self-contained scripts is also an option for interactive use, see eg the organization of tests in


Thank you very much, just what I needed!

1 Like