Use the junit sweet plugin. Fixes #104
--- a/.hgignore Sun May 21 23:39:27 2017 -0500
+++ b/.hgignore Mon May 22 00:02:20 2017 -0500
@@ -1,5 +1,6 @@
^convey(-.+-amd64(\.exe)?)?$
--- a/bitbucket/bitbucket_test.go Sun May 21 23:39:27 2017 -0500
+++ b/bitbucket/bitbucket_test.go Mon May 22 00:02:20 2017 -0500
@@ -21,6 +21,7 @@
"github.com/aphistic/sweet"
+ junit "github.com/aphistic/sweet-junit" . "github.com/onsi/gomega"
@@ -30,6 +31,8 @@
RegisterFailHandler(sweet.GomegaFail)
sweet.Run(m, func(s *sweet.S) {
+ s.RegisterPlugin(junit.NewPlugin()) s.AddSuite(&bitbucketSuite{})
--- a/config/config_test.go Sun May 21 23:39:27 2017 -0500
+++ b/config/config_test.go Mon May 22 00:02:20 2017 -0500
@@ -21,6 +21,7 @@
"github.com/aphistic/sweet"
+ junit "github.com/aphistic/sweet-junit" . "github.com/onsi/gomega"
@@ -30,6 +31,8 @@
RegisterFailHandler(sweet.GomegaFail)
sweet.Run(m, func(s *sweet.S) {
+ s.RegisterPlugin(junit.NewPlugin()) s.AddSuite(&configSuite{})
--- a/convey.yml Sun May 21 23:39:27 2017 -0500
+++ b/convey.yml Mon May 22 00:02:20 2017 -0500
@@ -18,8 +18,14 @@
image: convey/go-test:latest
+ command: -sweet.opt "junit.output=junit.xml" image: convey/go-vet:latest
@@ -149,6 +155,7 @@
--- a/docker/docker_test.go Sun May 21 23:39:27 2017 -0500
+++ b/docker/docker_test.go Mon May 22 00:02:20 2017 -0500
@@ -21,6 +21,7 @@
"github.com/aphistic/sweet"
+ junit "github.com/aphistic/sweet-junit" . "github.com/onsi/gomega"
@@ -30,6 +31,8 @@
RegisterFailHandler(sweet.GomegaFail)
sweet.Run(m, func(s *sweet.S) {
+ s.RegisterPlugin(junit.NewPlugin()) s.AddSuite(&dockerSuite{})
--- a/environment/environment_test.go Sun May 21 23:39:27 2017 -0500
+++ b/environment/environment_test.go Mon May 22 00:02:20 2017 -0500
@@ -21,6 +21,7 @@
"github.com/aphistic/sweet"
+ junit "github.com/aphistic/sweet-junit" . "github.com/onsi/gomega"
@@ -30,6 +31,8 @@
RegisterFailHandler(sweet.GomegaFail)
sweet.Run(m, func(s *sweet.S) {
+ s.RegisterPlugin(junit.NewPlugin()) s.AddSuite(&environmentSuite{})
--- a/intrinsic/intrinsic_test.go Sun May 21 23:39:27 2017 -0500
+++ b/intrinsic/intrinsic_test.go Mon May 22 00:02:20 2017 -0500
@@ -21,6 +21,7 @@
"github.com/aphistic/sweet"
+ junit "github.com/aphistic/sweet-junit" . "github.com/onsi/gomega"
@@ -30,6 +31,8 @@
RegisterFailHandler(sweet.GomegaFail)
sweet.Run(m, func(s *sweet.S) {
+ s.RegisterPlugin(junit.NewPlugin()) s.AddSuite(&intrinsicSuite{})
--- a/ssh/ssh_test.go Sun May 21 23:39:27 2017 -0500
+++ b/ssh/ssh_test.go Mon May 22 00:02:20 2017 -0500
@@ -21,6 +21,7 @@
"github.com/aphistic/sweet"
+ junit "github.com/aphistic/sweet-junit" . "github.com/onsi/gomega"
@@ -30,6 +31,8 @@
RegisterFailHandler(sweet.GomegaFail)
sweet.Run(m, func(s *sweet.S) {
+ s.RegisterPlugin(junit.NewPlugin()) --- a/tasks/tasks_test.go Sun May 21 23:39:27 2017 -0500
+++ b/tasks/tasks_test.go Mon May 22 00:02:20 2017 -0500
@@ -21,6 +21,7 @@
"github.com/aphistic/sweet"
+ junit "github.com/aphistic/sweet-junit" . "github.com/onsi/gomega"
@@ -30,6 +31,8 @@
RegisterFailHandler(sweet.GomegaFail)
sweet.Run(m, func(s *sweet.S) {
+ s.RegisterPlugin(junit.NewPlugin()) s.AddSuite(&tasksSuite{})