Skip to content

Commit

Permalink
*: -short should skip integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
diamondburned committed Jun 8, 2023
1 parent 13a6bf1 commit 176d992
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions internal/testenv/testenv.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build !uintonly
// +build !uintonly

package testenv
Expand Down Expand Up @@ -29,10 +30,15 @@ var (
)

func Must(t *testing.T) Env {
if testing.Short() {
t.Skip("skipping integration test")
}

e, err := GetEnv()
if err != nil {
t.Skip("integration test variables missing")
}

return e
}

Expand Down

0 comments on commit 176d992

Please sign in to comment.