mirror of
https://github.com/jstemmer/go-junit-report.git
synced 2025-04-09 15:18:08 -05:00
gtr: Add ID fields to Test, Benchmark and Error structs
This can optionally be used to uniquely individual tests, benchmarks or errors.
This commit is contained in:
parent
c87388ae59
commit
b95e18cd5c
@ -82,6 +82,7 @@ func (p *Package) SetProperty(key, value string) {
|
||||
|
||||
// Test contains the results of a single test.
|
||||
type Test struct {
|
||||
ID int
|
||||
Name string
|
||||
Duration time.Duration
|
||||
Result Result
|
||||
@ -91,6 +92,7 @@ type Test struct {
|
||||
|
||||
// Benchmark contains the results of a single benchmark.
|
||||
type Benchmark struct {
|
||||
ID int
|
||||
Name string
|
||||
Result Result
|
||||
Output []string
|
||||
@ -103,6 +105,7 @@ type Benchmark struct {
|
||||
|
||||
// Error contains details of a build or runtime error.
|
||||
type Error struct {
|
||||
ID int
|
||||
Name string
|
||||
Duration time.Duration
|
||||
Cause string
|
||||
|
Loading…
x
Reference in New Issue
Block a user