File tree Expand file tree Collapse file tree 1 file changed +18
-1
lines changed
Expand file tree Collapse file tree 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change 11using ParallelTestRunner
2+ using Test
23
34pushfirst! (ARGS , " --verbose" )
45
@@ -24,7 +25,7 @@ runtests(ARGS; init_code, custom_tests)
2425# custom worker
2526function test_worker (name)
2627 if name == " needs env var"
27- return addworker (env= [" SPECIAL_ENV_VAR" => " 42" ])
28+ return addworker (env = [" SPECIAL_ENV_VAR" => " 42" ])
2829 end
2930 return nothing
3031end
@@ -37,3 +38,19 @@ custom_tests = Dict(
3738 end
3839)
3940runtests (ARGS ; test_worker, custom_tests)
41+
42+ # failing test
43+ custom_tests = Dict (
44+ " failing test" => quote
45+ @test 1 == 2
46+ end
47+ )
48+ @test_throws Test. FallbackTestSetException (" Test run finished with errors" ) runtests (ARGS ; custom_tests)
49+
50+ # throwing test
51+ custom_tests = Dict (
52+ " throwing test" => quote
53+ error (" This test throws an error" )
54+ end
55+ )
56+ @test_throws Test. FallbackTestSetException (" Test run finished with errors" ) runtests (ARGS ; custom_tests)
You can’t perform that action at this time.
0 commit comments