Skip to content
Snippets Groups Projects
Commit 481f19d4 authored by Benjamin Bollen's avatar Benjamin Bollen Committed by GitHub
Browse files

Merge pull request #272 from silasdavis/no-test-wrapper-for-unit-tests

Might be running the integration test wrapper when we didn't intend to and multiple times
parents 3e8649a1 e827eb17
No related branches found
No related tags found
No related merge requests found
......@@ -42,9 +42,9 @@ test:
override:
# We only wish to test our packages not vendored ones
- echo "Running unit tests..."
- cd $GOPATH_REPO && glide novendor | xargs go test -v
- cd $GOPATH_REPO && go test -v `glide novendor`
- echo "Running integration tests..."
- cd $GOPATH_REPO && glide novendor | xargs go test -v -tags integration
- cd $GOPATH_REPO && go test -v -tags integration `glide novendor`
deployment:
......
// +build integration
// Space above here matters
package test
import (
"github.com/eris-ltd/eris-db/test/fixtures"
rpc_core "github.com/eris-ltd/eris-db/rpc/tendermint/core"
"testing"
"fmt"
)
// Needs to be in a _test.go file to be picked up
// Needs to be referenced by a *_test.go file to be picked up
func TestWrapper(runner func() int) int {
fmt.Println("Running with integration TestWrapper (rpc/tendermint/test/common.go)...")
ffs := fixtures.NewFileFixtures("Eris-DB")
defer ffs.RemoveAll()
......
// +build integration
// Space above here matters
package main
import (
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment