mirror of
https://github.com/jstemmer/go-junit-report.git
synced 2025-07-06 05:57:54 -05:00
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.
This commit is contained in:
@ -14,9 +14,9 @@ func TestCreateFromReport(t *testing.T) {
|
||||
report := gtr.Report{
|
||||
Packages: []gtr.Package{
|
||||
{
|
||||
Benchmarks: []gtr.Benchmark{
|
||||
Tests: []gtr.Test{
|
||||
{
|
||||
Name: "BenchmarkFail",
|
||||
Name: "TestFail",
|
||||
Result: gtr.Fail,
|
||||
},
|
||||
},
|
||||
@ -35,7 +35,7 @@ func TestCreateFromReport(t *testing.T) {
|
||||
ID: 0,
|
||||
Testcases: []Testcase{
|
||||
{
|
||||
Name: "BenchmarkFail",
|
||||
Name: "TestFail",
|
||||
Time: "0.000",
|
||||
Failure: &Result{Message: "Failed"},
|
||||
},
|
||||
|
Reference in New Issue
Block a user