mirror of
https://github.com/jstemmer/go-junit-report.git
synced 2025-07-03 20:52:47 -05:00
gtr,junit: move creation of JUnit testsuites from gtr to junit
Package gtr shouldn't need to know about the existence of different output formats like junit.
This commit is contained in:
@ -204,7 +204,8 @@ func testReport(input, reportFile, packageName string, t *testing.T) {
|
||||
}
|
||||
|
||||
testTime := time.Date(2022, 1, 1, 0, 0, 0, 0, time.UTC)
|
||||
actual := gtr.JUnit(gtr.FromEvents(events, packageName), "hostname", testTime)
|
||||
report := gtr.FromEvents(events, packageName)
|
||||
actual := junit.CreateFromReport(report, "hostname", testTime)
|
||||
|
||||
expectedXML, err := loadTestReport(reportFile, "")
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user