11 Commits

Author SHA1 Message Date
Joël Stemmer
075629ad5f junit: Add Testsuites.WriteXML method 2022-09-30 23:04:10 +01:00
Joël Stemmer
934b104ddd junit: Remove properties helper function in junit_test.go 2022-09-17 22:37:47 +01:00
Tomasz Janiszewski
84a5190347
Escape illegal XML characters in junit output (#140) 2022-09-17 22:26:44 +01:00
greg-dennis
15d215e49d Report stores a slice of Property structs rather than a map, to mimic JUnit properties, which have a deterministic ordering and allow multipler properties with the same name. 2022-08-23 10:41:42 -04:00
Joël Stemmer
63e0c8be15 junit: Improve test coverage of junit.CreateFromReport 2022-06-26 14:55:54 +01:00
Joël Stemmer
dc591b8731 junit: Remove benchmark specific code from package junit
The junit package shouldn't need to know anything about benchmarks and
gtr.Benchmark will be removed in a future commit. Instead, it will be
the responsibility of the gotest parser to represent benchmarks using
gtr.Test.
2022-06-15 23:46:40 +01:00
Joël Stemmer
f1ad02b733 junit: Use the standard duration formatting for benchmark durations
Benchmark durations were originally formatted with higher precision
because they contained just the NsPerOp field. Now that we're
approximating the total duration they are more accurate and don't need
as many decimals.
2022-06-12 23:02:01 +01:00
Joël Stemmer
c87388ae59 parser/gotest,junit: Move benchmark grouping to parser/gotest package
Having multiple benchmarks for a single name is something specific to
the gotest output, so grouping benchmarks by name is not something that
belongs in the junit package.
2022-06-08 23:01:01 +01:00
Joël Stemmer
9bc291d7ca junit: Make Testsuites.ID a required field 2022-05-21 14:28:22 +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