Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ end
@test 1 == 2
end
)
error_line = @__LINE__() - 3

io = IOBuffer()
@test_throws Test.FallbackTestSetException("Test run finished with errors") begin
Expand All @@ -90,6 +91,7 @@ end
str = String(take!(io))
@test contains(str, r"basic .+ started at")
@test contains(str, r"failing test .+ failed at")
@test contains(str, "$(basename(@__FILE__)):$error_line")
@test contains(str, "FAILURE")
@test contains(str, "Test Failed")
@test contains(str, "1 == 2")
Expand All @@ -101,6 +103,7 @@ end
error("This test throws an error")
end
)
error_line = @__LINE__() - 3

io = IOBuffer()
@test_throws Test.FallbackTestSetException("Test run finished with errors") begin
Expand All @@ -110,6 +113,7 @@ end
str = String(take!(io))
@test contains(str, r"basic .+ started at")
@test contains(str, r"throwing test .+ failed at")
@test contains(str, "$(basename(@__FILE__)):$error_line")
@test contains(str, "FAILURE")
@test contains(str, "Error During Test")
@test contains(str, "This test throws an error")
Expand Down