385fac0ced
Merge pull request #76 from PascalBourdier/master
...
fix path in doc
2018-06-14 15:38:34 +01:00
8a7cf56401
fix path in doc
...
avoid an error like this :
-bash: ./go-junit-report: No such file or directory
2018-06-14 16:12:03 +02:00
d0a98937db
Merge pull request #75 from brittinator/master
...
Regex captures benchmarks with or without CPU suffix
2018-06-08 20:56:33 +01:00
b4d81a975b
Regex captures benchmarks with or without CPU suffix.
2018-06-07 22:19:32 -07:00
47abdc7385
Fix whitespace prefixes in testdata for subtests
...
Go test output for subtests are prefixed with spaces instead of tabs.
2018-06-03 22:49:25 +01:00
56afb484ae
Move -count parameter to bench example and a little cleanup
2018-06-03 22:49:01 +01:00
b27aeca3e6
Merge pull request #73 from brittinator/master
...
Adds benchmarking parser and formatter
2018-06-03 22:46:44 +01:00
1c2c0a00fe
Adds multi-package benchmark support, simplifies merge benchmark averaging. Addressing code review comments.
2018-06-03 12:28:48 -07:00
260b47cabe
Addressing code review comments.
...
Mainly:
* Moving the averaging/merging of benchmarks from the parser to the formatter package
* Tightening up the regex so it only captures the numeric values (no more of trimming spaces and the ns/op)
* Deleting the writing up in xml file the benchmark memory sections of B/op and Allocs/op
Also added a test case for parseNanoseconds().
2018-05-29 21:05:13 -07:00
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
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
c1eb342963
Add -match test flag to make testing specific tests easier
2018-04-21 18:15:02 +01:00
6e1ccef4d8
Add support for cached tests
2018-04-21 18:15:02 +01:00
6a7ce5ecd4
Rename tests to testdata
2018-04-21 18:10:48 +01:00
f738270caf
Fix and update Travis build config
...
- Fix building for go1.10, see travis-ci/travis-ci#9247 .
- Add a ".x" suffix to each version so that Travis selects the latest
minor release.
- Remove go1.1, which is not available anymore on Travis.
2018-03-17 20:24:24 +00:00
de2cdb5ac5
Add go1.9 and go.10 to Travis build config
2018-03-17 19:44:35 +00:00
6f96942bb2
Rename and update parallel testcase
2018-03-17 19:44:04 +00:00
766f2ff9bb
Merge pull request #67 from mattdelco/upstream
2018-03-17 19:42:25 +00:00
2eb034df4e
Merge pull request #68 from jmillikin-stripe/formatter-package
...
Move `junit-formatter.go` to its own package for use as a library.
2018-03-17 19:41:40 +00:00
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
d9db44172d
Remove \s* prefix from regexStatus
2018-02-03 23:50:50 +00:00
0e171eb667
[rvelaz] Fix test report when the program writes to stdout
2018-01-05 17:25:13 +01:00
a009038a63
Set test output directly when parsing the result
2017-07-28 21:43:03 +01:00
862454a821
Add state to ignore trailing output
2017-07-26 08:06:07 +02:00
0f1caf6c3e
Revert changes to coverage regexps
...
Add expected test output instead
2017-07-25 09:25:47 +02:00
a9c8bce520
Add Go 1.8 to Travis build
2017-07-25 09:07:29 +02:00
01656fa7f4
Capture more test output, e.g. race detection results
2017-07-25 09:07:29 +02:00
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