From d3f2f6b099bbbf5d28c875615bdc22d70dc30db1 Mon Sep 17 00:00:00 2001 From: Carlo Strub Date: Wed, 22 Feb 2017 23:36:08 +0000 Subject: [PATCH] ginkgo --- .travis.yml | 4 +++- sisyphus_suite_test.go | 13 +++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 sisyphus_suite_test.go diff --git a/.travis.yml b/.travis.yml index 9f3a728..295f91e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,6 +14,8 @@ install: - go get -v github.com/Masterminds/glide - cd $GOPATH/src/github.com/Masterminds/glide && go install && cd - - glide install + - go get github.com/onsi/gomega + - go get github.com/onsi/ginkgo/ginkgo script: - - go test + - ginkgo -r --randomizeAllSpecs --randomizeSuites --failOnPending --trace --race --compilers=2 diff --git a/sisyphus_suite_test.go b/sisyphus_suite_test.go new file mode 100644 index 0000000..37a5d03 --- /dev/null +++ b/sisyphus_suite_test.go @@ -0,0 +1,13 @@ +package main_test + +import ( + . "github.com/onsi/ginkgo" + . "github.com/onsi/gomega" + + "testing" +) + +func TestSisyphus(t *testing.T) { + RegisterFailHandler(Fail) + RunSpecs(t, "Sisyphus Suite") +}