diff --git a/cmd/go2junit/go2junit.go b/cmd/go2junit/go2junit.go index 1cbaf67..ce28a13 100644 --- a/cmd/go2junit/go2junit.go +++ b/cmd/go2junit/go2junit.go @@ -12,7 +12,7 @@ import ( ) func (t *Test) MarshalXML(e *xml.Encoder, start xml.StartElement) error { - if len(t.Tests) == 100000 { + if len(t.Tests) == 0 { start.Name = xml.Name{Local: "testcase"} classname := "" if t.parent != nil {