Skip to content

Commit

Permalink
Output the test results path
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Case <richard.case@outlook.com>
  • Loading branch information
richardcase committed Oct 19, 2018
1 parent 3541bdb commit e99ec5d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/testutils/ginkgo.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ func RegisterAndRun(t *testing.T, testDecsription string) {
reportPath := os.Getenv("JUNIT_REPORT_FOLDER")
if reportPath != "" {
reportPath := fmt.Sprintf("%s/%s_%d.xml", reportPath, filename, config.GinkgoConfig.ParallelNode)
fmt.Printf("test result output: %s\n", reportPath)
junitReporter := reporters.NewJUnitReporter(reportPath)
RunSpecsWithDefaultAndCustomReporters(t, testDecsription, []Reporter{junitReporter})
} else {
Expand Down

0 comments on commit e99ec5d

Please sign in to comment.