-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
Here's a MWE:
tests = ["test1.jl"]
for test in tests
@testset "$test" begin include(test) end
end
works fine. Replacing @testset
with @safetestset
gives the following error:
ERROR: LoadError: ArgumentError: Use `@safetestset` like the following:
@safetestset "Benchmark Tests" begin include("benchmark_tests.jl") end
@safetestset BenchmarkTests = "Benchmark Tests" begin include("benchmark_tests.jl") end
Removing the string interpolation (to avoid #4),
tests = ["test1.jl"]
for test in tests
@safetestset "test_name" begin include(test) end
end
gives the following error:
Got exception outside of a @test
UndefVarError: `test` not defined
Metadata
Metadata
Assignees
Labels
No labels