go-junit-report/testdata/32-report.xml
Joël Stemmer 817a23b10d gtr: Handle end_test events without corresponding run_test event
When running `go test` without the `-v` flag, the output may not contain
everything that we expect. For example, no output is generated for
passing tests. Even for a failing test the output does not contain a
`=== RUN` line.

Currently, this resulted in us ignoring the test result since we
couldn't find an existing test to assign this result to. We should
however handle this situation gracefully, and just assume a test exists
when only encountering a test result line.

References #109
2022-03-20 22:35:50 +00:00

13 lines
564 B
XML

<?xml version="1.0" encoding="UTF-8"?>
<testsuites tests="2" errors="1">
<testsuite tests="2" failures="0" errors="1" time="0.005" name="github.com/jstemmer/test/failedsummary" hostname="hostname" timestamp="2022-01-01T00:00:00Z">
<properties>
<property name="go.version" value="1.0"></property>
</properties>
<testcase classname="failedsummary" name="TestOne" time="0.000"></testcase>
<testcase classname="failedsummary" name="Failure" time="0.000">
<error message="Run error" type="">panic: panic</error>
</testcase>
</testsuite>
</testsuites>