Skip to content

Commit

Permalink
remove default reporter and file path since ginkgo creates them
Browse files Browse the repository at this point in the history
Signed-off-by: pinikomarov <[email protected]>
  • Loading branch information
pinikomarov authored and mangelajo committed Jun 22, 2020
1 parent ff79b1d commit 88b6155
Showing 1 changed file with 1 addition and 21 deletions.
22 changes: 1 addition & 21 deletions test/e2e/e2e.go
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
package e2e

import (
"fmt"
"os"
"path/filepath"
"testing"

"github.com/onsi/ginkgo"
"github.com/onsi/ginkgo/config"
"github.com/onsi/ginkgo/reporters"
"github.com/onsi/gomega"
"github.com/submariner-io/shipyard/test/e2e/framework"
"k8s.io/klog"
Expand Down Expand Up @@ -59,21 +55,5 @@ func RunE2ETests(t *testing.T) bool {
config.DefaultReporterConfig.SlowSpecThreshold = 45.0
}

// Register the default reporter, and in addition setup the jUnit XML Reporter
reporterList := []ginkgo.Reporter{}
reportDir := framework.TestContext.ReportDir
if reportDir != "" {
// Create the directory if it doesn't already exists
if err := os.MkdirAll(reportDir, 0755); err != nil {
t.Fatalf("Failed creating jUnit report directory: %v", err)
return false
}
}
// Configure a junit reporter to write to the directory
junitFile := fmt.Sprintf("junit_%s_%02d.xml",
framework.TestContext.ReportPrefix,
config.GinkgoConfig.ParallelNode)
junitPath := filepath.Join(reportDir, junitFile)
reporterList = append(reporterList, reporters.NewJUnitReporter(junitPath))
return ginkgo.RunSpecsWithDefaultAndCustomReporters(t, "Submariner E2E suite", reporterList)
return ginkgo.RunSpecs(t, "Submariner E2E suite")
}

0 comments on commit 88b6155

Please sign in to comment.