Have @testset
run conditionally on ARGS?
#32715
Labels
testsystem
The unit testing framework and Test stdlib
@testset
run conditionally on ARGS?
#32715
I was looking into running only a subset of tests. There is now functionality in Pkg for doing that by passing a list of tests to run to runtests.jl (JuliaLang/Pkg.jl#1226). The suggested workflow is that
runtests.jl
does the subsetting manually with something likeThat's a lot of boilerplate. Of course I can redefine my own
@testset
-like macro to check ARGS, but can't that be done by@testset
itself? What I'm suggesting is that@testset
checks if ARGS is non-empty and, if it is, only run the test if the string is in ARGS. It is breaking, though...The text was updated successfully, but these errors were encountered: