Generate test report for the E2E testing

Generate test report for the E2E testing so that we can check the test result in the automation pipelines easily

Signed-off-by: Wenkai Yin(尹文开) <yinw@vmware.com>
This commit is contained in:
Wenkai Yin(尹文开)
2021-07-26 09:49:42 +08:00
parent bc2484e9ab
commit 6a0267d4e9

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})
}