go-junit-report/testdata/030-report.xml
Joël Stemmer 7c195be87f Do not trim output whitespace prefix
Whitespace prefix of output lines was carried over from the old v1
version, but in some cases it removes too much whitespace. Ideally it
would detect the common prefix of all output lines for a given text and
only trim that. Until that's fixed, let's just stop removing the
whitespace.

Fixes #131
2022-05-13 21:01:49 +01:00

70 lines
3.1 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<testsuites tests="17" failures="9">
<testsuite name="package/name1" tests="17" failures="9" errors="0" hostname="hostname" time="4.567" timestamp="2022-01-01T00:00:00Z">
<properties>
<property name="go.version" value="1.0"></property>
</properties>
<testcase name="TestFailWithStdoutAndTestOutput" classname="package/name1" time="0.100">
<failure message="Failed"><![CDATA[multi
line
stdout
single-line stdout
example_test.go:13: single-line error
example_test.go:14: multi
line
error]]></failure>
</testcase>
<testcase name="TestFailWithStdoutAndNoTestOutput" classname="package/name1" time="0.150">
<failure message="Failed"><![CDATA[multi
line
stdout
single-line stdout]]></failure>
</testcase>
<testcase name="TestFailWithTestOutput" classname="package/name1" time="0.200">
<failure message="Failed"><![CDATA[ example_test.go:26: single-line error
example_test.go:27: multi
line
error]]></failure>
</testcase>
<testcase name="TestFailWithNoTestOutput" classname="package/name1" time="0.250">
<failure message="Failed"></failure>
</testcase>
<testcase name="TestPassWithStdoutAndTestOutput" classname="package/name1" time="0.300"></testcase>
<testcase name="TestPassWithStdoutAndNoTestOutput" classname="package/name1" time="0.350"></testcase>
<testcase name="TestPassWithTestOutput" classname="package/name1" time="0.400"></testcase>
<testcase name="TestPassWithNoTestOutput" classname="package/name1" time="0.500"></testcase>
<testcase name="TestSubtests" classname="package/name1" time="2.270">
<failure message="Failed"></failure>
</testcase>
<testcase name="TestSubtests/TestFailWithStdoutAndTestOutput" classname="package/name1" time="0.100">
<failure message="Failed"><![CDATA[1 multi
line
stdout
1 single-line stdout
example_test.go:65: 1 single-line error
example_test.go:66: 1 multi
line
error]]></failure>
</testcase>
<testcase name="TestSubtests/TestFailWithStdoutAndNoTestOutput" classname="package/name1" time="0.150">
<failure message="Failed"><![CDATA[2 multi
line
stdout
2 single-line stdout]]></failure>
</testcase>
<testcase name="TestSubtests/TestFailWithTestOutput" classname="package/name1" time="0.200">
<failure message="Failed"><![CDATA[ example_test.go:78: 3 single-line error
example_test.go:79: 3 multi
line
error]]></failure>
</testcase>
<testcase name="TestSubtests/TestFailWithNoTestOutput" classname="package/name1" time="0.250">
<failure message="Failed"></failure>
</testcase>
<testcase name="TestSubtests/TestPassWithStdoutAndTestOutput" classname="package/name1" time="0.300"></testcase>
<testcase name="TestSubtests/TestPassWithStdoutAndNoTestOutput" classname="package/name1" time="0.350"></testcase>
<testcase name="TestSubtests/TestPassWithTestOutput" classname="package/name1" time="0.400"></testcase>
<testcase name="TestSubtests/TestPassWithNoTestOutput" classname="package/name1" time="0.500"></testcase>
</testsuite>
</testsuites>