Skip to content

Commit b9b6763

Browse files
committed
filter-junit.go: fix loss of testcases when parsing Ginkgo v2 JUnit
The "junit" variable is meant to accumulate all testcases from the input files. Overwriting it with the content of an input file when that input file used the new Ginkgo V2 JUnit caused the result of prior input files to get lost.
1 parent d427783 commit b9b6763

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

filter-junit.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ func main() {
110110
if err := xml.Unmarshal(data, &junitv2); err != nil {
111111
panic(err)
112112
}
113-
junit = junitv2.TestSuite
113+
junit.TestCases = append(junit.TestCases, junitv2.TestSuite.TestCases...)
114114
}
115115
}
116116

0 commit comments

Comments
 (0)