appoptics / terraform-provider-appoptics

Apache License 2.0
4 stars 2 forks source link

Tests don't fail when required env vars are not set #15

Closed solarchad closed 5 years ago

solarchad commented 5 years ago

We have this in provider_test.go:

func testAccPreCheck(t *testing.T) {
        if v := os.Getenv("APPOPTICS_TOKEN"); v == "" {
                t.Fatal("APPOPTICS_TOKEN must be set for acceptance tests")
        }
}

But when this env var is not set, the tests still pass when make test is ran.