Commit Graph

136 Commits

Author SHA1 Message Date
a7ad52d825 parser/gotest: Parse cached tests 2022-03-07 00:09:34 +00:00
76069cb328 parser/gotest: Parse additional parallel output 2022-03-07 00:09:34 +00:00
236bda9d6d parser/gotest: Check for prefix that's not part of end-test 2022-03-07 00:09:34 +00:00
6026e8f15e parser/gotest: Parse package coverage 2022-03-07 00:09:34 +00:00
34ffb9d16d parser/gotest: Remove indent for output, add test for race 2022-03-07 00:09:34 +00:00
42bf91bd4d parser/gotest: Refactor to subtests & add more tests 2022-03-07 00:09:34 +00:00
48c4de6257 parser/gotest: Parse build failures 2022-03-07 00:09:34 +00:00
2e3761de80 parser/gotest: Properly handle subtest prefixes 2022-03-07 00:09:34 +00:00
8ec797a84c parser/gotest: Fix indent detection of test output 2022-03-07 00:09:34 +00:00
73545440ce parser/gotest: Add test for go1.5 test output 2022-03-07 00:09:34 +00:00
a4e60c8339 parser/gotest: Parse coverage from summary lines 2022-03-07 00:09:34 +00:00
a58f8f1a19 parser/gotest: Add support for parsing go test coverage 2022-03-07 00:09:34 +00:00
c5559de1a8 parser/gotest: Add tests for compiled test output and parallel test output 2022-03-07 00:09:34 +00:00
a6b3b6f974 parser/gotest: Add tests for go1.4 output and multiple packages 2022-03-07 00:09:34 +00:00
caf696a15d parser/gotest: Add test for skipped tests 2022-03-07 00:09:34 +00:00
0512acf25e parser/gotest: Handle test output logging 2022-03-07 00:09:34 +00:00
292d0c814b parser/gotest: Initial version of package parser/gotest 2022-03-07 00:09:30 +00:00
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