Brittany Walentin
b2f467b67c
Adds ability to parse benchmarking information, and (optional) with memory information and with -count specified. Includes a number of unit tests. Issue #70 .
2018-05-22 20:18:03 -07:00
Joël Stemmer
1ce4b93a20
Deprecated Time field, use a time.Duration instead.
...
The parser.Package.Time and parser.Test.Time fields are currently still
supported, but will be removed in the future.
2018-04-21 18:15:02 +01:00
Joël Stemmer
c1eb342963
Add -match test flag to make testing specific tests easier
2018-04-21 18:15:02 +01:00
Joël Stemmer
6e1ccef4d8
Add support for cached tests
2018-04-21 18:15:02 +01:00
Joël Stemmer
6a7ce5ecd4
Rename tests to testdata
2018-04-21 18:10:48 +01:00
Joël Stemmer
6f96942bb2
Rename and update parallel testcase
2018-03-17 19:44:04 +00:00
Matt Delco
766f2ff9bb
Merge pull request #67 from mattdelco/upstream
2018-03-17 19:42:25 +00:00
John Millikin
03cda22671
Move junit-formatter.go
to its own package for use as a library.
...
This lets JUnit xml generation be integrated into larger tools
instead of having to run the `go-junit-report` binary as a subprocess.
2018-03-16 16:09:48 -07:00
rvelaz
0e171eb667
[rvelaz] Fix test report when the program writes to stdout
2018-01-05 17:25:13 +01:00
Ingmar Stein
862454a821
Add state to ignore trailing output
2017-07-26 08:06:07 +02:00
Ingmar Stein
0f1caf6c3e
Revert changes to coverage regexps
...
Add expected test output instead
2017-07-25 09:25:47 +02:00
Ingmar Stein
01656fa7f4
Capture more test output, e.g. race detection results
2017-07-25 09:07:29 +02:00
Joël Stemmer
15422cf504
Add support for -coverpkg output
...
Fixes #59
2017-07-24 21:45:57 +01:00
Joël Stemmer
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
Joël Stemmer
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
Eyal Posener
4e217bedba
Detect setup error as a failing test
...
Fixes #50
2017-04-19 15:59:40 +03:00
Joël Stemmer
e02a3f88c0
Merge pull request #45 from posener/build-error
...
Fail package in case of build error
2017-04-01 12:38:20 +01: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
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
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
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
Joël Stemmer
8faee8c123
Fix tests after moving parser into subpackage
2015-07-01 22:32:12 +02: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
cf467263c2
fixing tests
2015-05-14 17:15:59 -06: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
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
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
d72fb56d06
Add properties to xml report
...
Include the go runtime version as a property.
2012-03-16 16:10:59 +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
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