mirror of
https://github.com/jstemmer/go-junit-report.git
synced 2025-04-05 05:00:15 -05:00
Print events for debugging in tests
This commit is contained in:
parent
02fb5c657b
commit
cb92a4a6c8
@ -1591,6 +1591,12 @@ func testNewParser(input, reportFile, packageName string, t *testing.T) {
|
|||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if *printEvents {
|
||||||
|
for _, event := range events {
|
||||||
|
t.Logf("Event: %+v", event)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
actual := gtr.JUnit(gtr.FromEvents(events, packageName))
|
actual := gtr.JUnit(gtr.FromEvents(events, packageName))
|
||||||
|
|
||||||
expectedXML, err := loadTestReport(reportFile, "")
|
expectedXML, err := loadTestReport(reportFile, "")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user