TestItemRunner.jl
TestItemRunner.jl copied to clipboard
Early exit from `@testitem`
Often in my code I will have stuff like:
@testitem "my test" begin
if VERSION >= v"1.8"
using MyPkg
do_stuff()
end
end
It could be nice to have a way to exit early from a test instead, like
@testitem "my test" begin
if VERSION < v"1.8"
@testitembreak
end
using MyPkg
do_stuff()
end
I was planning to adopt the skip option that ReTestItems.jl has, I think that would solve this problem? skip would accept an expression that gets evaluated.
Nice! Yeah that would be perfect.