-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
update at-testset docs for verbose option #38447
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Thanks! I really forgot the docs when I created that PR. |
stdlib/Test/docs/src/index.md
Outdated
|
|
||
| In the event that a nested test set has no failures, as happened here, it will be hidden in the | ||
| summary. If we do have a test failure, only the details for the failed test sets will be shown: | ||
| summary, unless the `verbose=true` option is passed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please add here the following example:
julia> @testset verbose = true "Foo Tests" begin
@testset "Animals" begin
@test foo("cat") == 9
@test foo("dog") == foo("cat")
end
@testset "Arrays $i" for i in 1:3
@test foo(zeros(i)) == i^2
@test foo(fill(1.0, i)) == i^2
end
end;
Test Summary: | Pass Total
Foo Tests | 8 8
Animals | 2 2
Arrays 1 | 2 2
Arrays 2 | 2 2
Arrays 3 | 2 2There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea! It's added now.
ronisbr
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! LGTM.
|
There is one unrelated failure, in |
|
@ronisbr thanks for your review, it helps to click merge! (although I can't really do it blindly in this case ;-) ) |
Sorry! I do not have write access. I "approve" because everything you wrote about |
No, I meant your approval helped me to click merge! (otherwise I would have simply waited for someone else to merge) |
|
Oh nice! Sorry again 😅 |
This option was added in #33755.