I created nested @testsets with tests. In general, it is running correct for all tests, but console output is not same as I expected from following website. I tried it on Julia 1.5.2, 1.5.4, 1.6RC.
https://docs.julialang.org/en/v1/stdlib/Test/
Modified example from website:
using Test
@testset "1." begin
@testset "1.1" begin
@testset "Felines" begin
@test true
end
@testset "1.2" begin
@test true
end
end
@testset "1.2" begin
@test true
end
end
Console output:
Test Summary: | Pass Total
1. | 3 3
Test.DefaultTestSet("1.", Any[Test.DefaultTestSet("1.1", Any[Test.DefaultTestSet("Felines", Any[], 1, false, false), Test.DefaultTestSet("1.2", Any[], 1, false, false)], 0, false, false), Test.DefaultTestSet("1.2", Any[], 1, false, false)], 0, false, false)
I’m expecting output like this:
Test Summary: | Pass Total
1. | 3 3
1.1 | 1 1
1.2 | 1 1
1.2 | 1 1