Skip to content

Commit

Permalink
warn about flatten_results! behavior in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
philbit authored Jun 10, 2024
1 parent fa124ec commit 7b90fe3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/testsets.jl
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,9 @@ end
Returns a flat vector of `TestSet`s which only contain `Result`s. This is necessary for
writing a JUnit XML report the schema does not allow nested XML `testsuite` elements.
Warning: Alters the original hierarchy inside `ts` and potentially removes testsets
from it. Be sure to rely only on the returned vector after usage.
"""
flatten_results!(ts::AbstractTestSet) = _flatten_results!(ts, 0)

Expand Down

0 comments on commit 7b90fe3

Please sign in to comment.