Correctly parse test output of parallel tests

Fixes #10
This commit is contained in:
Joël Stemmer
2015-02-06 13:44:06 +01:00
parent e705d170a3
commit 672f4cd7e2
4 changed files with 100 additions and 47 deletions

10
tests/08-parallel.txt Normal file
View File

@ -0,0 +1,10 @@
=== RUN TestDoFoo
=== RUN TestDoFoo2
--- PASS: TestDoFoo (0.27s)
cov_test.go:10: DoFoo log 1
cov_test.go:10: DoFoo log 2
--- PASS: TestDoFoo2 (0.16s)
cov_test.go:21: DoFoo2 log 1
cov_test.go:21: DoFoo2 log 2
PASS
ok github.com/dmitris/test-go-junit-report 0.440s

10
tests/08-report.xml Normal file
View File

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuites>
<testsuite tests="2" failures="0" time="0.440" name="github.com/dmitris/test-go-junit-report">
<properties>
<property name="go.version" value="1.0"></property>
</properties>
<testcase classname="test-go-junit-report" name="TestDoFoo" time="0.270"></testcase>
<testcase classname="test-go-junit-report" name="TestDoFoo2" time="0.160"></testcase>
</testsuite>
</testsuites>