Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ Standard library changes
#### Test

* Test failures when using the `@test` macro now show evaluated arguments for all function calls ([#57825], [#57839]).
* Transparent test sets (`@testset let`) now show context when tests error ([#58727]).

#### InteractiveUtils

Expand Down
5 changes: 4 additions & 1 deletion stdlib/Test/src/Test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1675,7 +1675,7 @@ of the `begin/end` case (as if used for each loop iteration).
# `@testset let`

When `@testset let` is used, the macro starts a *transparent* test set with
the given object added as a context object to any failing test contained
the given object added as a context object to any failing or erroring test contained
therein. This is useful when performing a set of related tests on one larger
object and it is desirable to print this larger object when any of the
individual tests fail. Transparent test sets do not introduce additional levels
Expand All @@ -1688,6 +1688,9 @@ parent test set (with the context object appended to any failing tests.)
!!! compat "Julia 1.10"
Multiple `let` assignments are supported since Julia 1.10.

!!! compat "Julia 1.13"
Context is shown when a test errors since Julia 1.13.

# Special implicit world age increment for `@testset begin`

World age inside `@testset begin` increments implicitly after every statement.
Expand Down