Skip to content

Commit 2186398

Browse files
author
Jeff Peeler
committedOct 28, 2019
test(e2e): add initial test bootstrap
Essentially what is produced by `ginkgo bootstrap`, but without using dot-imports. The package name is intentionally chosen to be outside of the code under test in order to encourage not reaching into the internals.
1 parent 5ffa448 commit 2186398

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed
 

‎go.mod

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ require (
1010
github.com/grpc-ecosystem/grpc-health-probe v0.2.1-0.20181220223928-2bf0a5b182db
1111
github.com/imdario/mergo v0.3.7 // indirect
1212
github.com/mattn/go-sqlite3 v1.10.0
13+
github.com/onsi/ginkgo v1.8.0
14+
github.com/onsi/gomega v1.5.0
1315
github.com/otiai10/copy v1.0.1
1416
github.com/otiai10/curr v0.0.0-20190513014714-f5a3d24e5776 // indirect
1517
github.com/sirupsen/logrus v1.4.2

‎test/e2e/e2e_suite_test.go

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package e2e_test
2+
3+
import (
4+
"testing"
5+
6+
"github.com/onsi/ginkgo"
7+
"github.com/onsi/gomega"
8+
)
9+
10+
func TestE2e(t *testing.T) {
11+
gomega.RegisterFailHandler(ginkgo.Fail)
12+
ginkgo.RunSpecs(t, "E2e Suite")
13+
}

0 commit comments

Comments
 (0)
Please sign in to comment.