17 Commits

Author SHA1 Message Date
Joël Stemmer
c606832065 Remove unused function 2017-03-26 23:58:37 +01:00
Nick Miyake
22792ea55c Add "go-version" flag
Makes it so that the value of the "go.version" property in
the output XML can be customized by the caller using the
"go-version" flag. If the flag is unspecified, falls back to
the previous behavior of using runtime.Version() as the value.

Fixes #48
2017-03-26 15:43:14 -07:00
Joël Stemmer
afd084b9d1 Merge branch 'subpackage' 2015-07-01 22:31:23 +02:00
Jeff Grafton
6087bd544c Extract and report coverage information.
When `go test` is run on multiple packages and with coverage collection
enabled, it appends coverage information to the final result line for
each package.

With this change, properly handle this additional information and add it
into the JUnit XML report as a property of the test suite.
2015-06-29 17:36:33 -07:00
Craig Peterson
a30d4886ed moving parser into subpackage 2015-05-14 17:07:05 -06:00
Joël Stemmer
e705d170a3 Fix golint suggestions 2015-02-06 13:57:44 +01:00
Nick Palmer
6d2ab46d4f Add surrounding <testsuites> tag.
* If a test log contains more than one package we need to wrap it
  in a <testsuites> element in order to be valid xml. Bamboo
  cannot read the file if it is not valid xml.
2015-01-13 18:35:34 -08:00
Tachikoma
8cd3db55e5 add flag -no-xml-header 2014-12-22 20:59:04 +08:00
Joël Stemmer
c4d99d755b Merge pull request #2 from placeybordeaux/bugfix/skip-isnt-failure
check for SKIP on the regex and the if condition
2014-12-22 12:01:36 +01:00
Joël Stemmer
cea5308dd5 Go 1.1 or higher is required 2014-10-24 21:44:19 +02:00
Peter Lacey-Bordeaux
5c1ba2f305 identify skipped tests properly with a message 2014-10-24 08:58:04 -04:00
Joel Stemmer
a6dab641a1 Parse test failure messages 2012-03-17 12:34:02 +01:00
Joel Stemmer
bcc3b7b2d7 Add xsd link to junit-formatter 2012-03-16 17:53:50 +01:00
Joel Stemmer
c633abbaa9 Set failure message when a test failed.
The failure tag is required when a test failed. The failure message is
set to 'Failed' for now since we don't have the actual failure message
yet.
2012-03-16 16:13:47 +01:00
Joel Stemmer
d72fb56d06 Add properties to xml report
Include the go runtime version as a property.
2012-03-16 16:10:59 +01:00
Joel Stemmer
8cf088e24f Do not create <failure> tag when message is empty 2012-03-16 15:41:38 +01:00
Joel Stemmer
c9c0e1877c Write JUnit report xml
Add tests
2012-03-09 19:52:48 +01:00