27 Commits

Author SHA1 Message Date
Eyal Posener
4e217bedba Detect setup error as a failing test
Fixes #50
2017-04-19 15:59:40 +03:00
Eyal Posener
d10c0632c7 Use test level failure to indicate build failure
- Use single regex for package result line
- Add capturing of package build failure output
2017-03-30 21:46:08 +03:00
Eyal Posener
3c05bc8cb6 Fail package in case of build error
In case of build error, the unittest fail, but the junit-report
with the set-exit-code flag on returns status code 0.
This commit will make it return the right status code.
2017-01-22 10:13:01 +02:00
Aiden Scandella
faed36da23 Fix 1.7 compatbility 2016-09-12 13:54:45 -07:00
Patrick O'brien
24d394d799 Add go 1.7 compatibility
* Subtests and nested subtests have spaces at the beginning of their
PASS statements. This has been added to the regexp.
2016-09-12 13:54:45 -07:00
Aiden Scandella
025df2fb46 Fix version for tests 2015-08-30 17:29:42 -07:00
Aiden Scandella
1b60a11396 Add support for Go 1.5 test results
An alternate approach that does not involve regular expressions.

Fixes #15
2015-08-23 10:55:52 -07: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
Joël Stemmer
672f4cd7e2 Correctly parse test output of parallel tests
Fixes #10
2015-02-06 14:08:01 +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
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
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
9745789fe6 add test for flag -no-xml-header 2014-12-22 21:00:23 +08:00
Tachikoma
4aa31fc440 add test for go 1.4 support 2014-12-22 20:38:28 +08:00
Joel Stemmer
11bc6d69ca Add test for skipped testcases 2014-12-22 12:09:35 +01:00
Joël Stemmer
cea5308dd5 Go 1.1 or higher is required 2014-10-24 21:44:19 +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
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
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