NestedTests
NestedTests
— ModuleRun tests in nested environments.
NestedTests.nested_test
— Functionnested_test(name::String) do ... end
Run tests in a nested environment. The test can use any of the variables defined in its parent test(s). Any changes made to these variables will be isolated from other sibling nested tests in this level, but will be visible to descendant nested tests.
NestedTests.test_name
— Functiontest_name()::String
Return the full name of the current test, with /
separating the nested test names.
NestedTests.abort_on_first_failure
— Functionabort_on_first_failure(abort::Bool)::Bool
Specify whether to abort the execution when encountering a test failure (by default, false
). Returns the previous setting.
NestedTests.test_prefixes
— Functiontest_prefixes(prefixes::Vector{Union{String}})::Nothing
Specify prefixes for the tests to run. Only tests whose test_name
matches any of these prefixes will be run. If the vector is empty (the default), all the tests will be run.