go-junit-report/testdata/038-report.xml
Joël Stemmer 97e0285183 parser/gotest: Handle build errors in test packages with _test suffix
It's possible for test files to declare a package with the "_test"
suffix. If these packages contain build errors, they were not correctly
matched to the package without the "_test" suffix.

Refs #145
2022-09-17 01:09:34 +01:00

12 lines
535 B
XML

<?xml version="1.0" encoding="UTF-8"?>
<testsuites tests="1" errors="1">
<testsuite name="package/testpkg/pkg" tests="1" failures="0" errors="1" id="0" hostname="hostname" time="0.000" timestamp="2022-01-01T00:00:00Z">
<properties>
<property name="go.version" value="1.0"></property>
</properties>
<testcase name="[build failed]" classname="package/testpkg/pkg_test" time="0.000">
<error message="Build error"><![CDATA[pkg/pkg_test.go:5:2: imported and not used: "fmt"]]></error>
</testcase>
</testsuite>
</testsuites>