A test that is marked as broken (with @test_broke
) does not lead to a test failure, all tests passed as indicated by the SUCCESS
in the output.
From the docs of @test_broken
:
help?> @test_broken
@test_broken ex
Indicates a test that should pass but currently consistently fails.
Tests that the expression ex evaluates to false or causes an exception.
Returns a Broken Result if it does, or an Error Result if the expression evaluates to true.
Example:
julia> using Test
julia> @testset begin
@test 1 == 1 # results in a Pass
@test 1 == 2 # results in a Fail
@test_broken 1 == 2 # results in a Broken
end
Test Summary: | Pass Fail Broken Total
test set | 1 1 1 3
ERROR: Some tests did not pass: 1 passed, 1 failed, 0 errored, 1 broken.