-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
testset verbose = true is not applied recursively #61434
Copy link
Copy link
Open
Labels
testsystemThe unit testing framework and Test stdlibThe unit testing framework and Test stdlib
Description
The docstring of @testset says that
verbose::Bool: iftrue, the result summary of the nested testsets is shown even when they all pass (the default isfalse).
In the MWE,
using Test
@testset verbose = true "level 0" begin
@testset "level 1" begin
@testset "level 2" begin
@test :a ≡ :a
end
end
endarguably level 2 is nested within level 0, but in the output it is not printed
Test Summary: | Pass Total Time
level 0 | 1 1 0.0s
level 1 | 1 1 0.0sI don't think this was the intended behavior, but if yes, we should clarify in the doctring.
(Opening an issue to discuss before making a PR. Above output is from Julia v1.12.)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
testsystemThe unit testing framework and Test stdlibThe unit testing framework and Test stdlib