15422cf504
Add support for -coverpkg output
...
Fixes #59
2017-07-24 21:45:57 +01:00
cce73b4996
Change findTest to return the most recently added test
...
Whenever we encounter a result line in the test output, we would find
the first test with the matching name and update it. However, in some
cases it's possible for the same test name to appear multiple times in
the output. To prevent us from always updating the oldest test, the
order in which findTests searches for a matching test is reversed so
that it always returns the most recently added test.
Fixes #54 .
2017-05-11 22:22:43 +01:00
9a95738d2a
Merge pull request #53 from jstemmer/capture-package-failures
...
Include failing packages without tests in report
2017-04-29 14:54:45 +02:00
2a5fd0eeb0
Include failing packages without tests in report
...
If a package compiles correctly, but panics before it has a chance to
run any tests it would previously be ignored. Any failing packages
without tests but with some output will now be included in the report
with a dummy test.
Fixes #52
2017-04-27 23:21:54 +01:00
dd4990585e
Merge pull request #51 from posener/setup-error
...
Detect setup error as a failing test
2017-04-20 19:46:43 +02:00
4e217bedba
Detect setup error as a failing test
...
Fixes #50
2017-04-19 15:59:40 +03:00
e02a3f88c0
Merge pull request #45 from posener/build-error
...
Fail package in case of build error
2017-04-01 12:38:20 +01:00
e9729a3e7e
Fix CR comments
...
* Change regexpCapture to HasPrefix function
* Use same addition pattern of the faild build test
* Fix readme
2017-04-01 08:36:21 +03:00
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
b66d44cd3a
Run gofmt on go-junit-report.go
2017-03-28 18:12:00 +01:00
c606832065
Remove unused function
2017-03-26 23:58:37 +01:00
baff58700e
Merge pull request #49 from nmiyake/addGoVersionFlag
...
Add "go-version" flag
2017-03-26 23:57:37 +01:00
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
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
6aeed679b6
Merge pull request #42 from jstemmer/add-badges
...
Add A+ goreportcard and fix bash syntax
2016-11-09 16:58:00 -08:00
0c1d4ddfcf
Add A+ goreportcard and fix bash syntax
...
Let's be pround of our work.
2016-11-08 09:59:00 -08:00
785fe2e290
Merge pull request #40 from sectioneight/fix-1.7-compat
...
Add support for sub-tests in 1.7
2016-11-07 15:49:48 -08:00
faed36da23
Fix 1.7 compatbility
2016-09-12 13:54:45 -07:00
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
833f8ea2b9
Merge pull request #17 from sectioneight/go-1.5-support
...
Add support for Go 1.5 test results
2015-09-03 14:19:37 +02:00
b05998ea5c
Add go1.5 to travis config
2015-09-03 14:17:38 +02:00
025df2fb46
Fix version for tests
2015-08-30 17:29:42 -07:00
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
8faee8c123
Fix tests after moving parser into subpackage
2015-07-01 22:32:12 +02:00
afd084b9d1
Merge branch 'subpackage'
2015-07-01 22:31:23 +02:00
70903df84a
Merge pull request #14 from ixdy/parse-coverage-info
...
Extract and report coverage information.
2015-07-01 22:18:59 +02:00
ba0125f1ef
Fix multipkg test case to work for all versions of go.
2015-06-29 18:16:46 -07:00
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
cf467263c2
fixing tests
2015-05-14 17:15:59 -06:00
a30d4886ed
moving parser into subpackage
2015-05-14 17:07:05 -06:00
38eb577ca2
Merge pull request #11 from benzaita/master
...
adding 'set-exit-code' flag
2015-05-11 10:51:33 +02:00
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
672f4cd7e2
Correctly parse test output of parallel tests
...
Fixes #10
2015-02-06 14:08:01 +01:00
e705d170a3
Fix golint suggestions
2015-02-06 13:57:44 +01:00
f992d5acaa
Rename names of the first tests
...
To make sure the output order is preserved.
2015-02-06 13:43:03 +01:00
8176458231
Add go1.4.1 and remove some older go releases
2015-02-04 11:45:15 +01:00
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
4f0ad507d0
add test for compiled test
2015-02-04 11:05:56 +01:00
18e031d2c6
Merge pull request #9 from nickpalmer/testsuites
...
Testsuites
2015-01-15 21:37:55 +01:00
2110a4a63b
Replace all go version attributes.
2015-01-13 19:24:08 -08:00
fc2896020a
Add a test case which has more than one suite in it.
2015-01-13 18:45:30 -08:00
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
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
18ee6df2f2
Merge pull request #7 from ikarishinjieva/feature/no_xml_header
...
add flag -no-xml-header
2014-12-22 14:21:21 +01:00
9745789fe6
add test for flag -no-xml-header
2014-12-22 21:00:23 +08:00
8cd3db55e5
add flag -no-xml-header
2014-12-22 20:59:04 +08:00
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
4aa31fc440
add test for go 1.4 support
2014-12-22 20:38:28 +08:00
a3d66c44af
update regexStatus to support go 1.4
2014-12-22 20:37:59 +08:00
11bc6d69ca
Add test for skipped testcases
2014-12-22 12:09:35 +01:00