grim/convey

Use the junit sweet plugin. Fixes #104

2017-05-22, Gary Kramlich
212b446dc69b
Parents c1b74c46f921
Children 645b5749078c
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 @@
syntax: regexp
^convey(-.+-amd64(\.exe)?)?$
+\/junit\.xml$
syntax: glob
*.sublime-workspace
--- 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 @@
"testing"
"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 @@
"testing"
"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 @@
type: clean
files:
- convey-*
+ - '**/junit.xml'
go-test:
image: convey/go-test:latest
+ command: -sweet.opt "junit.output=junit.xml"
+ export-junit:
+ type: export
+ files:
+ - '**/junit.xml'
go-vet:
image: convey/go-vet:latest
build-linux:
@@ -149,6 +155,7 @@
tasks:
- go-vet
- go-test
+ - export-junit
- name: build
concurrent: true
tasks:
--- 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 @@
"testing"
"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 @@
"testing"
"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 @@
"testing"
"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 @@
"testing"
"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(&sshSuite{})
})
}
--- 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 @@
"testing"
"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{})
})
}