From b9b6763bd7237b925c04cd32b2ff0af7602852b2 Mon Sep 17 00:00:00 2001 From: Patrick Ohly Date: Sat, 17 Dec 2022 17:46:35 +0100 Subject: [PATCH] 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. --- filter-junit.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filter-junit.go b/filter-junit.go index 8eb1b8e44..c1b7b6192 100644 --- a/filter-junit.go +++ b/filter-junit.go @@ -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...) } }