Skip to content

Commit

Permalink
filter-junit.go: fix loss of testcases when parsing Ginkgo v2 JUnit
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
pohly committed Dec 17, 2022
1 parent d427783 commit b9b6763
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion filter-junit.go
Expand Up @@ -110,7 +110,7 @@ func main() {
if err := xml.Unmarshal(data, &junitv2); err != nil {
panic(err)
}
junit = junitv2.TestSuite
junit.TestCases = append(junit.TestCases, junitv2.TestSuite.TestCases...)
}
}

Expand Down

0 comments on commit b9b6763

Please sign in to comment.