Skip to content

Commit

Permalink
generate JUnit test output
Browse files Browse the repository at this point in the history
This is helpful when running the tests in the Bluemix DevOps pipeline
  • Loading branch information
Holly Cummins and Tim Jacobi authored and Dominic Harries and Holly Cummins committed Jan 20, 2017
1 parent 74e9d9d commit bcd9e60
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ coverage/*.html
blue-green-deploy.*
artefacts/
Godeps/_workspace
junit.xml
4 changes: 3 additions & 1 deletion cf_green_blue_deploy_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@ package main_test

import (
. "github.com/onsi/ginkgo"
"github.com/onsi/ginkgo/reporters"
. "github.com/onsi/gomega"

"testing"
)

func TestCfGreenBlueDeploy(t *testing.T) {
RegisterFailHandler(Fail)
RunSpecs(t, "CfGreenBlueDeploy Suite")
junitReporter := reporters.NewJUnitReporter("junit.xml")
RunSpecsWithDefaultAndCustomReporters(t, "CfGreenBlueDeploy Suite", []Reporter{junitReporter})
}

0 comments on commit bcd9e60

Please sign in to comment.