Skip to content

Commit 7b90fe3

Browse files
authored
warn about flatten_results! behavior in docs
1 parent fa124ec commit 7b90fe3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/testsets.jl

+3
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,9 @@ end
263263
264264
Returns a flat vector of `TestSet`s which only contain `Result`s. This is necessary for
265265
writing a JUnit XML report the schema does not allow nested XML `testsuite` elements.
266+
267+
Warning: Alters the original hierarchy inside `ts` and potentially removes testsets
268+
from it. Be sure to rely only on the returned vector after usage.
266269
"""
267270
flatten_results!(ts::AbstractTestSet) = _flatten_results!(ts, 0)
268271

0 commit comments

Comments
 (0)