mirror of
https://github.com/jstemmer/go-junit-report.git
synced 2025-04-05 21:18:08 -05:00

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
13 lines
564 B
XML
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>
|