mirror of
https://github.com/jstemmer/go-junit-report.git
synced 2025-04-09 23:28: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.
|
// Test contains the results of a single test.
|
||||||
type Test struct {
|
type Test struct {
|
||||||
|
ID int
|
||||||
Name string
|
Name string
|
||||||
Duration time.Duration
|
Duration time.Duration
|
||||||
Result Result
|
Result Result
|
||||||
@ -91,6 +92,7 @@ type Test struct {
|
|||||||
|
|
||||||
// Benchmark contains the results of a single benchmark.
|
// Benchmark contains the results of a single benchmark.
|
||||||
type Benchmark struct {
|
type Benchmark struct {
|
||||||
|
ID int
|
||||||
Name string
|
Name string
|
||||||
Result Result
|
Result Result
|
||||||
Output []string
|
Output []string
|
||||||
@ -103,6 +105,7 @@ type Benchmark struct {
|
|||||||
|
|
||||||
// Error contains details of a build or runtime error.
|
// Error contains details of a build or runtime error.
|
||||||
type Error struct {
|
type Error struct {
|
||||||
|
ID int
|
||||||
Name string
|
Name string
|
||||||
Duration time.Duration
|
Duration time.Duration
|
||||||
Cause string
|
Cause string
|
||||||
|
Loading…
x
Reference in New Issue
Block a user