Joël Stemmer
c78e04707f
gtr,parser/gotest: move Event and building a report to parser/gotest
...
The Parse method now directly returns a report, rather than a list of
events that then need to be converted into a report. As part of this
change, the Event struct has also been moved to the gotest package. It's
now the responsibility of the parser to construct a gtr.Report.
2022-03-22 22:05:23 +00:00
Joël Stemmer
832cc97037
parser/gotest: refactor parser so Parse is no longer a top level func
...
Making Parse a method on a Parser struct makes it possible to later
define an common parser interface.
2022-03-22 22:05:23 +00:00
Joël Stemmer
a70d508a2e
parser/gotest: support parsing test summaries when there were no tests
2022-03-20 22:35:50 +00:00
Joël Stemmer
e2a7c1a394
parser/gotest: Add TODO to remove the build_output type
2022-03-20 22:35:50 +00:00
Joël Stemmer
c3acdf13c2
parser/gotest: Remove unnecessary string concatenation in regexSummary
2022-03-20 22:35:50 +00:00
Joël Stemmer
ffc33941fa
gtr, parser/gotest: Add support for build errors
2022-03-20 22:35:50 +00:00
Joël Stemmer
3f9d5b62db
gtr, parser/gotest: Move output formatting out of parser
2022-03-20 22:35:50 +00:00
Joël Stemmer
08a21eb096
parser/gotest: Fix output trimming
2022-03-20 22:35:50 +00:00
Joël Stemmer
79753fd332
parser/gotest: Trim tab prefix from output
2022-03-20 22:35:50 +00:00
Joël Stemmer
4f6df9492b
gtr, parser/gotest: Add test 130
2022-03-20 22:35:50 +00:00
Joël Stemmer
1a0c32347c
gtr,parser/gotest: Add test 27
2022-03-20 22:35:50 +00:00
Joël Stemmer
e33490229b
parser/gotest: Add test 23
2022-03-20 22:35:50 +00:00
Joël Stemmer
c03c92d418
gtr,parser/gotest: Improve benchmark output matching
2022-03-20 22:35:50 +00:00
Joël Stemmer
bac074db96
parser/gotest: Initial support for parsing benchmarks
2022-03-20 22:35:50 +00:00
Joël Stemmer
ff2fc90eeb
parser/gotest,gtr: Move Event type to package gtr
2022-03-20 22:35:50 +00:00
Joël Stemmer
c6349bc2f5
parser/gotest: Make parser/gotest parser stateless
2022-03-11 21:53:02 +00:00
Joël Stemmer
1cf71a341d
parser/gotest: Remove debug printf line
2022-03-07 00:09:34 +00:00
Joël Stemmer
a7ad52d825
parser/gotest: Parse cached tests
2022-03-07 00:09:34 +00:00
Joël Stemmer
76069cb328
parser/gotest: Parse additional parallel output
2022-03-07 00:09:34 +00:00
Joël Stemmer
236bda9d6d
parser/gotest: Check for prefix that's not part of end-test
2022-03-07 00:09:34 +00:00
Joël Stemmer
6026e8f15e
parser/gotest: Parse package coverage
2022-03-07 00:09:34 +00:00
Joël Stemmer
34ffb9d16d
parser/gotest: Remove indent for output, add test for race
2022-03-07 00:09:34 +00:00
Joël Stemmer
48c4de6257
parser/gotest: Parse build failures
2022-03-07 00:09:34 +00:00
Joël Stemmer
2e3761de80
parser/gotest: Properly handle subtest prefixes
2022-03-07 00:09:34 +00:00
Joël Stemmer
8ec797a84c
parser/gotest: Fix indent detection of test output
2022-03-07 00:09:34 +00:00
Joël Stemmer
a4e60c8339
parser/gotest: Parse coverage from summary lines
2022-03-07 00:09:34 +00:00
Joël Stemmer
a58f8f1a19
parser/gotest: Add support for parsing go test coverage
2022-03-07 00:09:34 +00:00
Joël Stemmer
0512acf25e
parser/gotest: Handle test output logging
2022-03-07 00:09:34 +00:00
Joël Stemmer
292d0c814b
parser/gotest: Initial version of package parser/gotest
2022-03-07 00:09:30 +00:00