Skip to content

testset verbose = true is not applied recursively #61434

@tpapp

Description

@tpapp

The docstring of @testset says that

verbose::Bool: if true, the result summary of the nested testsets is shown even when they all pass (the default is false).

In the MWE,

using Test
@testset verbose = true "level 0" begin
    @testset "level 1" begin
        @testset "level 2" begin
            @test :a  :a
        end
    end
end

arguably 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.0s

I 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.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    testsystemThe unit testing framework and Test stdlib

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions