344 Commits

Author SHA1 Message Date
Joël Stemmer
70903df84a Merge pull request #14 from ixdy/parse-coverage-info
Extract and report coverage information.
2015-07-01 22:18:59 +02:00
Jeff Grafton
ba0125f1ef Fix multipkg test case to work for all versions of go. 2015-06-29 18:16:46 -07: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
cf467263c2 fixing tests 2015-05-14 17:15:59 -06:00
Craig Peterson
a30d4886ed moving parser into subpackage 2015-05-14 17:07:05 -06:00
Joël Stemmer
38eb577ca2 Merge pull request #11 from benzaita/master
adding 'set-exit-code' flag
2015-05-11 10:51:33 +02:00
itamarb
a34e6b2365 adding 'set-exit-code' flag
Defaults to false. When true, sets the exit-code to 1 if any tests
failed. This is useful for automation.
2015-05-08 13:56:18 +03:00
Joël Stemmer
672f4cd7e2 Correctly parse test output of parallel tests
Fixes #10
2015-02-06 14:08:01 +01:00
Joël Stemmer
e705d170a3 Fix golint suggestions 2015-02-06 13:57:44 +01:00
Joël Stemmer
f992d5acaa Rename names of the first tests
To make sure the output order is preserved.
2015-02-06 13:43:03 +01:00
Joël Stemmer
8176458231 Add go1.4.1 and remove some older go releases 2015-02-04 11:45:15 +01:00
Joël Stemmer
054e4c1b39 Merge pull request #8 from ikarishinjieva:feature/support_compiled_test
Conflicts:
	go-junit-report_test.go
2015-02-04 11:09:12 +01:00
Tachikoma
4f0ad507d0 add test for compiled test 2015-02-04 11:05:56 +01:00
Joël Stemmer
18e031d2c6 Merge pull request #9 from nickpalmer/testsuites
Testsuites
2015-01-15 21:37:55 +01:00
Nick Palmer
2110a4a63b Replace all go version attributes. 2015-01-13 19:24:08 -08:00
Nick Palmer
fc2896020a Add a test case which has more than one suite in it. 2015-01-13 18:45:30 -08: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
27383b3a74 compiled test's output have no result line, fill "package name" with flag -package-name , and fill "time" with sum of individual tests' time. 2014-12-22 21:53:08 +08:00
Joël Stemmer
18ee6df2f2 Merge pull request #7 from ikarishinjieva/feature/no_xml_header
add flag -no-xml-header
2014-12-22 14:21:21 +01:00
Tachikoma
9745789fe6 add test for flag -no-xml-header 2014-12-22 21:00:23 +08:00
Tachikoma
8cd3db55e5 add flag -no-xml-header 2014-12-22 20:59:04 +08:00
Joël Stemmer
6982e7a3a3 Merge pull request #6 from ikarishinjieva/feature/fix_go_1_4_support
fix go 1.4 support
2014-12-22 13:45:55 +01:00
Tachikoma
4aa31fc440 add test for go 1.4 support 2014-12-22 20:38:28 +08:00
Tachikoma
a3d66c44af update regexStatus to support go 1.4 2014-12-22 20:37:59 +08:00
Joel Stemmer
11bc6d69ca Add test for skipped testcases 2014-12-22 12:09:35 +01: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
Joel Stemmer
4d0f05068e Add go1.4 to travis configuration 2014-12-22 11:07:16 +01:00
Joël Stemmer
cea5308dd5 Go 1.1 or higher is required 2014-10-24 21:44:19 +02:00
Joël Stemmer
2021749f03 Add travis configuration 2014-10-24 21:44:13 +02:00
Peter Lacey-Bordeaux
5c1ba2f305 identify skipped tests properly with a message 2014-10-24 08:58:04 -04:00
Peter Lacey-Bordeaux
9922c23bd3 check for SKIP on the regex and the if condition 2014-10-23 22:51:59 -04:00
Joel Stemmer
d8b8d33660 Update readme 2012-03-28 20:04:14 +02:00
Joel Stemmer
e0174f066f Only strip the first tab from the output 2012-03-17 12:45:34 +01: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
92be560b6c Fix const in parser 2012-03-14 12:12:43 +01:00
Joel Stemmer
c9c0e1877c Write JUnit report xml
Add tests
2012-03-09 19:52:48 +01:00
Joel Stemmer
64b850a234 Remove parsing additional test output 2012-03-09 19:52:22 +01:00
Joel Stemmer
23311beb18 Add test for failing test output
Cleanup parser tests.
Move test output to separate files.
2012-03-09 19:52:17 +01:00
Joel Stemmer
4b851d63d2 Parse successful tests 2012-03-09 16:41:35 +01:00
Joel Stemmer
8fcd615a51 Initial commit 2012-03-09 15:38:06 +01:00