isle/go/toolkit/testutils.go

15 lines
334 B
Go
Raw Normal View History

2024-10-06 15:15:40 +00:00
package toolkit
import (
"os"
"testing"
)
// MarkIntegrationTest marks a test as being an integration test. It will be
// skipped if the ISLE_INTEGRATION_TEST envvar isn't set.
func MarkIntegrationTest(t *testing.T) {
if os.Getenv("ISLE_INTEGRATION_TEST") == "" {
t.Skip("Skipped because ISLE_INTEGRATION_TEST isn't set")
}
}