Open
Description
runtests.jl
using Test
function failFunction()
@test false
end
@time @testset verbose = true "test main level" begin
@time @testset "failure 1" begin
@test false
end
@time @testset "failure 2" begin
failFunction()
end
end
If @test
macro failure occurs inside @testset
block, full stack is properly printed (e.g. @testset "failure 1"
).
If @test
macro failure occurs inside a function called from within @testset
block, only limited stack is printed (e.g. @testset "failure 2"
). It is not clear as to where inside @testset
block failure originated.
This used to work in julia 1.6.5
versioninfo()
Julia Version 1.7.3
Commit 742b9abb4d (2022-05-06 12:58 UTC)
Platform Info:
OS: Windows (x86_64-w64-mingw32)
CPU: Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-12.0.1 (ORCJIT, skylake)```
</details>
Metadata
Metadata
Assignees
Labels
No labels