Merge pull request #3984 from ywk253100/210726_report

Generate test report for the E2E testing
This commit is contained in:
Daniel Jiang
2021-07-26 16:14:29 +08:00
committed by GitHub
+3 -1
View File
@@ -21,6 +21,7 @@ import (
"testing"
. "github.com/onsi/ginkgo"
"github.com/onsi/ginkgo/reporters"
. "github.com/onsi/gomega"
)
@@ -60,5 +61,6 @@ func TestE2e(t *testing.T) {
}
RegisterFailHandler(Fail)
RunSpecs(t, "E2e Suite")
junitReporter := reporters.NewJUnitReporter("report.xml")
RunSpecsWithDefaultAndCustomReporters(t, "E2e Suite", []Reporter{junitReporter})
}