mirror of
https://github.com/jstemmer/go-junit-report.git
synced 2025-04-04 20:50:14 -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)
|
||||
}
|
||||
|
||||
if *printEvents {
|
||||
for _, event := range events {
|
||||
t.Logf("Event: %+v", event)
|
||||
}
|
||||
}
|
||||
|
||||
actual := gtr.JUnit(gtr.FromEvents(events, packageName))
|
||||
|
||||
expectedXML, err := loadTestReport(reportFile, "")
|
||||
|
Loading…
x
Reference in New Issue
Block a user