63 Commits

Author SHA1 Message Date
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
Eyal Posener
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
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
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
afd084b9d1 Merge branch 'subpackage' 2015-07-01 22:31:23 +02:00
Craig Peterson
a30d4886ed moving parser into subpackage 2015-05-14 17:07:05 -06:00