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