diff --git a/cmd/go2junit/output.go b/cmd/go2junit/output.go index 6c6ec02..ce0c17e 100644 --- a/cmd/go2junit/output.go +++ b/cmd/go2junit/output.go @@ -78,7 +78,7 @@ func (testsuites *Testsuites) getSuite(t time.Time, pkg string) *Testsuite { func (suite *Testsuite) getSuite(t time.Time, name string) *Testsuite { for _, s := range suite.Testsuites { - if s.Name == name { + if s.Name == suite.Name+"/"+name { return s } }