diff --git a/pkg/junit/junit.go b/pkg/junit/junit.go index c521075..ac178cb 100644 --- a/pkg/junit/junit.go +++ b/pkg/junit/junit.go @@ -34,13 +34,13 @@ func (t *Testsuites) AddSuite(ts Testsuite) { // Testsuite is a single JUnit testsuite containing testcases. type Testsuite struct { // required attributes - Name string `xml:"name,attr"` - Tests int `xml:"tests,attr"` + Name string `xml:"name,attr"` + Tests int `xml:"tests,attr"` + Failures int `xml:"failures,attr"` + Errors int `xml:"errors,attr"` // optional attributes Disabled int `xml:"disabled,attr,omitempty"` - Errors int `xml:"errors,attr"` - Failures int `xml:"failures,attr"` Hostname string `xml:"hostname,attr,omitempty"` ID int `xml:"id,attr,omitempty"` Package string `xml:"package,attr,omitempty"` diff --git a/testdata/01-report.xml b/testdata/01-report.xml index 3f25be8..503f071 100644 --- a/testdata/01-report.xml +++ b/testdata/01-report.xml @@ -1,6 +1,6 @@ - + diff --git a/testdata/02-report.xml b/testdata/02-report.xml index f6b988a..9309da5 100644 --- a/testdata/02-report.xml +++ b/testdata/02-report.xml @@ -1,6 +1,6 @@ - + diff --git a/testdata/03-report.xml b/testdata/03-report.xml index ba8b6ef..4a8727a 100644 --- a/testdata/03-report.xml +++ b/testdata/03-report.xml @@ -1,6 +1,6 @@ - + diff --git a/testdata/04-report.xml b/testdata/04-report.xml index 24d00ba..edcb4ea 100644 --- a/testdata/04-report.xml +++ b/testdata/04-report.xml @@ -1,6 +1,6 @@ - + diff --git a/testdata/05-report.xml b/testdata/05-report.xml index 659dbda..029550e 100644 --- a/testdata/05-report.xml +++ b/testdata/05-report.xml @@ -1,5 +1,5 @@ - + diff --git a/testdata/06-report.xml b/testdata/06-report.xml index ce72dbc..e88ead1 100644 --- a/testdata/06-report.xml +++ b/testdata/06-report.xml @@ -1,12 +1,12 @@ - + - + diff --git a/testdata/07-report.xml b/testdata/07-report.xml index cffa9a5..0eb95bd 100644 --- a/testdata/07-report.xml +++ b/testdata/07-report.xml @@ -1,6 +1,6 @@ - + diff --git a/testdata/08-report.xml b/testdata/08-report.xml index 78c39b4..9a69e95 100644 --- a/testdata/08-report.xml +++ b/testdata/08-report.xml @@ -1,6 +1,6 @@ - + diff --git a/testdata/09-report.xml b/testdata/09-report.xml index e0db150..aa67423 100644 --- a/testdata/09-report.xml +++ b/testdata/09-report.xml @@ -1,6 +1,6 @@ - + diff --git a/testdata/10-report.xml b/testdata/10-report.xml index 1a0b494..a9a4cb5 100644 --- a/testdata/10-report.xml +++ b/testdata/10-report.xml @@ -1,6 +1,6 @@ - + @@ -8,7 +8,7 @@ - + diff --git a/testdata/11-report.xml b/testdata/11-report.xml index b45e7b4..8c494ec 100644 --- a/testdata/11-report.xml +++ b/testdata/11-report.xml @@ -1,6 +1,6 @@ - + diff --git a/testdata/12-report.xml b/testdata/12-report.xml index a834ab4..231ccf5 100644 --- a/testdata/12-report.xml +++ b/testdata/12-report.xml @@ -1,6 +1,6 @@ - - + + diff --git a/testdata/13-report.xml b/testdata/13-report.xml index d8090d8..e3cea8d 100644 --- a/testdata/13-report.xml +++ b/testdata/13-report.xml @@ -1,18 +1,18 @@ - - + + - + - + @@ -20,7 +20,7 @@ failing1/failing_test.go:15: undefined: x - + @@ -28,7 +28,7 @@ failing2/another_failing_test.go:20: undefined: y - + diff --git a/testdata/14-report.xml b/testdata/14-report.xml index 913ad72..c7d691e 100644 --- a/testdata/14-report.xml +++ b/testdata/14-report.xml @@ -1,6 +1,6 @@ - - + + @@ -8,7 +8,7 @@ panic: init stacktrace - + diff --git a/testdata/15-report.xml b/testdata/15-report.xml index 7c5dfe2..edc61a7 100644 --- a/testdata/15-report.xml +++ b/testdata/15-report.xml @@ -1,6 +1,6 @@ - + diff --git a/testdata/16-report.xml b/testdata/16-report.xml index b1a033b..b14d270 100644 --- a/testdata/16-report.xml +++ b/testdata/16-report.xml @@ -1,6 +1,6 @@ - + diff --git a/testdata/17-report.xml b/testdata/17-report.xml index fe86ca2..d8ba005 100644 --- a/testdata/17-report.xml +++ b/testdata/17-report.xml @@ -1,6 +1,6 @@ - + diff --git a/testdata/18-report.xml b/testdata/18-report.xml index f9bb03b..a9a4cb5 100644 --- a/testdata/18-report.xml +++ b/testdata/18-report.xml @@ -1,6 +1,6 @@ - + @@ -8,7 +8,7 @@ - + diff --git a/testdata/19-report.xml b/testdata/19-report.xml index 3f25be8..503f071 100644 --- a/testdata/19-report.xml +++ b/testdata/19-report.xml @@ -1,6 +1,6 @@ - + diff --git a/testdata/20-report.xml b/testdata/20-report.xml index 0d2989b..6cb1bf2 100644 --- a/testdata/20-report.xml +++ b/testdata/20-report.xml @@ -1,6 +1,6 @@ - + diff --git a/testdata/21-report.xml b/testdata/21-report.xml index 3b74bec..69e2bff 100644 --- a/testdata/21-report.xml +++ b/testdata/21-report.xml @@ -1,6 +1,6 @@ - + diff --git a/testdata/22-report.xml b/testdata/22-report.xml index 1225f46..d89e536 100644 --- a/testdata/22-report.xml +++ b/testdata/22-report.xml @@ -1,6 +1,6 @@ - + diff --git a/testdata/23-report.xml b/testdata/23-report.xml index 7f3217b..23ab635 100644 --- a/testdata/23-report.xml +++ b/testdata/23-report.xml @@ -1,6 +1,6 @@ - + diff --git a/testdata/24-report.xml b/testdata/24-report.xml index 3d140ff..396b06c 100644 --- a/testdata/24-report.xml +++ b/testdata/24-report.xml @@ -1,6 +1,6 @@ - + diff --git a/testdata/25-report.xml b/testdata/25-report.xml index 2c5edab..47e4af7 100644 --- a/testdata/25-report.xml +++ b/testdata/25-report.xml @@ -1,6 +1,6 @@ - + diff --git a/testdata/26-report.xml b/testdata/26-report.xml index d7772a9..66c2c8f 100644 --- a/testdata/26-report.xml +++ b/testdata/26-report.xml @@ -1,13 +1,13 @@ - + - + diff --git a/testdata/27-report.xml b/testdata/27-report.xml index af20f9c..8d3a0d3 100644 --- a/testdata/27-report.xml +++ b/testdata/27-report.xml @@ -1,6 +1,6 @@ - + diff --git a/testdata/28-report.xml b/testdata/28-report.xml index 425b7ff..b67511e 100644 --- a/testdata/28-report.xml +++ b/testdata/28-report.xml @@ -1,6 +1,6 @@ - + diff --git a/testdata/29-report.xml b/testdata/29-report.xml index fd1ed84..20f849b 100644 --- a/testdata/29-report.xml +++ b/testdata/29-report.xml @@ -1,6 +1,6 @@ - + diff --git a/testdata/30-report.xml b/testdata/30-report.xml index fb9d466..a647d9c 100644 --- a/testdata/30-report.xml +++ b/testdata/30-report.xml @@ -1,6 +1,6 @@ - + diff --git a/testdata/31-report.xml b/testdata/31-report.xml index d8090d8..e3cea8d 100644 --- a/testdata/31-report.xml +++ b/testdata/31-report.xml @@ -1,18 +1,18 @@ - - + + - + - + @@ -20,7 +20,7 @@ failing1/failing_test.go:15: undefined: x - + @@ -28,7 +28,7 @@ failing2/another_failing_test.go:20: undefined: y - + diff --git a/testdata/32-report.xml b/testdata/32-report.xml index 2d8411f..4b09a2d 100644 --- a/testdata/32-report.xml +++ b/testdata/32-report.xml @@ -1,6 +1,6 @@ - - + + diff --git a/testdata/33-report.xml b/testdata/33-report.xml index 10cea88..bd87331 100644 --- a/testdata/33-report.xml +++ b/testdata/33-report.xml @@ -1,6 +1,6 @@ - +