10 Commits

Author SHA1 Message Date
Joël Stemmer
27ad87e370 parser/gotest: parseLine now returns the events it creates 2022-08-15 22:07:52 +01:00
Joël Stemmer
d6bf22343d parser/gotest: Move event processing into reportBuilder 2022-08-13 20:48:36 +01:00
Joël Stemmer
01f2cdde22 parser/gotest: Use the new LimitedLineReader in the gotest parser 2022-07-18 23:02:22 +01:00
Joël Stemmer
079e5ce7ea parser/gotest: Add support for parsing lines longer than 64K
The gotest parser used a bufio.Scanner to read its input, which
prevented us from reading lines larger than 64K.

In order to support reading larger lines, bufio.Scanner has been
replaced with bufio.Reader. The maximum line size has been increased to
4MiB and instead of returning an error when reading lines that exceed
the maximum size, we truncate that line and continue parsing.

Fixes #135
2022-06-26 00:45:06 +01:00
Joël Stemmer
da6551b8c0 gtr,parser/gotest: Remove gtr.Benchmark and use gtr.Test for all tests 2022-06-15 23:46:40 +01:00
Joël Stemmer
cb055227b7 parser/gotest: Improve gotest output handling
The reportBuilder has been updated to use the ordered output collector
to keep track of go test output. This makes it possible to include
benchmark output in the generated report and makes sure that output is
preserved when deleting subtest parents from the report.
2022-06-08 23:01:01 +01:00
Joël Stemmer
2f7bf7c3bc parser/gotest: Set unique Test, Benchmark and Error ID's
This will be used later to collect and store output for the right tests.
2022-06-08 23:01:01 +01:00
Joël Stemmer
1b7027fde7 parser/gotest: add SubtestMode to configure how to deal with subtests 2022-05-22 00:32:17 +01:00
Joël Stemmer
df7394c77c Fix cmp.Diff argument order in tests 2022-05-13 21:45:38 +01:00
Joël Stemmer
d84b066208 Move packages out of pkg/ 2022-04-20 19:39:05 +01:00