ipld-eth-server/pkg/transformers/integration_tests/integration_tests_suite_test.go

31 lines
639 B
Go
Raw Normal View History

package integration_tests
import (
2018-11-21 04:47:01 +00:00
log "github.com/sirupsen/logrus"
"testing"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
2018-11-06 03:34:13 +00:00
"github.com/spf13/viper"
2018-10-15 20:04:17 +00:00
"io/ioutil"
)
2018-10-15 20:04:17 +00:00
var ipc string
func TestIntegrationTests(t *testing.T) {
RegisterFailHandler(Fail)
RunSpecs(t, "IntegrationTests Suite")
}
2018-10-15 20:04:17 +00:00
var _ = BeforeSuite(func() {
2018-11-06 03:34:13 +00:00
testConfig := viper.New()
testConfig.SetConfigName("staging")
2018-11-06 03:34:13 +00:00
testConfig.AddConfigPath("$GOPATH/src/github.com/vulcanize/vulcanizedb/environments/")
err := testConfig.ReadInConfig()
ipc = testConfig.GetString("client.ipcPath")
if err != nil {
log.Fatal(err)
}
2018-10-15 20:04:17 +00:00
log.SetOutput(ioutil.Discard)
})