Browse Source

Add ginkgo for testing

tags/v1.2.2
Paul Bonser 7 years ago
parent
commit
c79b7c2b36
4 changed files with 33 additions and 4 deletions
  1. +6
    -2
      Makefile
  2. +8
    -2
      glide.lock
  3. +6
    -0
      glide.yaml
  4. +13
    -0
      goes_suite_test.go

+ 6
- 2
Makefile View File

@@ -2,9 +2,13 @@ help:
@echo "Available targets:"
@echo "- test: run tests"
@echo "- deps: installs dependencies with glide"
@echo "- watch: watch for changes and re-run tests"

deps:
glide up
glide install

test: deps
go test -i && go test
ginkgo -race -randomizeAllSpecs -r -skipPackage vendor -progress .

watch: deps
ginkgo watch -race -randomizeAllSpecs -r -skipPackage vendor -progress -notify .

+ 8
- 2
glide.lock View File

@@ -1,6 +1,12 @@
hash: 7e39b5bd354c3f0770ca3a9d28a74a0523695d18effa1e540f006b325defcfe7
updated: 2016-07-26T14:50:32.597335795-05:00
hash: 02db47097959405b1a7e0e1e583c6fbb11c7236c450264909a4e9ac690ef4d47
updated: 2016-09-27T11:54:53.427061181-05:00
imports: []
testImports:
- name: github.com/go-check/check
version: 4f90aeace3a26ad7021961c297b22c42160c7b25
- name: github.com/onsi/ginkgo
version: 462326b1628e124b23f42e87a8f2750e3c4e2d24
subpackages:
- ginkgo
- name: github.com/onsi/gomega
version: a78ae492d53aad5a7a232d0d0462c14c400e3ee7

+ 6
- 0
glide.yaml View File

@@ -3,3 +3,9 @@ import: []
testImport:
- package: github.com/go-check/check
version: v1
- package: github.com/onsi/ginkgo
version: ^1.2.0
subpackages:
- ginkgo
- package: github.com/onsi/gomega
version: ^1.0.0

+ 13
- 0
goes_suite_test.go View File

@@ -0,0 +1,13 @@
package goes_test

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

"testing"
)

func TestGoes(t *testing.T) {
RegisterFailHandler(Fail)
RunSpecs(t, "Goes Suite")
}

Loading…
Cancel
Save