5b78a29c68
Create a v2 module and bump version to v2.0.0-dev
...
The old parser and formatter packages will be replaced with new packages
that are not backwards compatible. For this reason we must increment the
major version of this module.
2022-03-06 23:49:00 +00:00
2a37e36ac6
Add test for benchmarks with MB/s
2022-03-06 23:03:55 +00:00
d5de2960fd
Remove travis config
...
This has been replaced by a Github Actions workflow.
2022-02-26 23:39:52 +00:00
e0c48d5051
Configure Github Actions to automatically run tests
2022-02-26 23:31:29 +00:00
16c7efad77
Bump version to v1.0.0
v1.0.0
2022-02-24 22:01:24 +00:00
b61b86b9a7
Update README and contributing guidelines
...
- Add new section for installing go-junit-report from pre-built
binaries.
- The instructions for installing from source have been updated to use
`go install`, now that `go get` is being deprecated, see #124 .
- Move contributing guidelines to separate `CONTRIBUTING.md` file.
2022-02-24 22:00:47 +00:00
26cb193214
Create Makefile to help build releases
2022-02-23 22:39:48 +00:00
b2b06e7a1e
Add -version flag to print current version
2022-02-19 14:35:37 +00:00
984a47ca6b
Update Travis build status badge to use master branch
2019-10-08 20:53:20 +01:00
cc1f095d5c
Specify correct minimum go version in go.mod
v0.9.1
2019-10-04 20:55:37 +01:00
c92ec55ec6
Create go.mod file
v0.9.0
2019-10-04 00:10:55 +01:00
27e2e8f782
Print usage on flag error
2019-10-04 00:05:01 +01:00
f79a156ed8
Define flags directly and remove init function
2019-10-04 00:03:12 +01:00
45752f2672
Reorganize README
...
Move the contribution section to the bottom and fix the formatting of
the test section.
2019-10-04 00:02:18 +01:00
1b8b67371c
Report testsuite failures even if all tests succeeded
...
Fixes #87
2019-10-03 23:53:41 +01:00
8b849e7995
Merge pull request #96 from themichaellai/master
...
Parse package name output when test binary name is included
2019-10-03 22:58:14 +01:00
080dff894f
Merge pull request #93 from johnSchnake/unmarshalSuites
...
Adjust xml annotations to allow unmarshal of test suites
2019-10-03 22:11:10 +01:00
6315b3013b
Parse package name output when test binary name is included
...
Sometimes, the text after "# " shows the name of the test binary
("<package>.test") in addition to the package
e.g.: "# package/name [package/name.test]".
This change ensures that the packages' build outputs are associated
correctly in this case.
2019-09-18 17:44:54 -07:00
c6aeb8e0a5
Adjust xml annotations to allow unmarshal of test suites
...
The xml annotations currently used allow for marshalling of
the test suites but fail to unmarshal them because of the
lack of an xml annotation on the slice fields for test suites
and test cases.
By adding those annotations, these types can be more widely reused.
Fixes #92
2019-08-20 21:37:56 -05:00
af01ea7f80
Merge pull request #82 from mark-rushakoff/cli-reject-positional-args
...
Reject positional CLI arguments
2019-01-06 14:48:39 +00:00
55f6716122
Merge pull request #83 from liggitt/test-output
...
Include test output and stdout in test failures
2019-01-06 14:36:47 +00:00
9c3d9dadf6
Include test output and stdout in test failures
2018-12-21 13:39:33 -05:00
63c2422f96
Reject positional CLI arguments
...
My team spent a bit of time debugging a mistake where we forgot to
redirect output to a file. The command looked valid and exited 0. This
change causes the program to fail if provided with any positional
arguments.
2018-12-13 11:41:34 -08:00
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