forked from hashicorp/consul-k8s
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main_test.go
37 lines (30 loc) · 908 Bytes
/
main_test.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
// Rename package to your test package.
package example
import (
"testing"
testsuite "github.com/hashicorp/consul-k8s/acceptance/framework/suite"
)
var suite testsuite.Suite
func TestMain(m *testing.M) {
// First, uncomment the line below to create a new suite so that all flags are parsed.
/*
suite = framework.NewSuite(m)
*/
// If the test suite needs to run only when certain test flags are passed,
// you need to handle that in the TestMain function.
// Uncomment and modify example code below if that is the case.
/*
if suite.Config().EnableExampleFeature {
os.Exit(suite.Run())
} else {
fmt.Println("Skipping example feature tests because -enable-example-feature is not set")
os.Exit(0)
}
*/
// If the test suite should run in every case, uncomment the line below.
/*
os.Exit(suite.Run())
*/
}