github.com/oam-dev/cluster-gateway@v1.9.0/e2e/benchmark/e2e_test.go (about) 1 package kubernetes 2 3 import ( 4 "flag" 5 "os" 6 "testing" 7 8 "github.com/onsi/ginkgo/v2" 9 "github.com/onsi/gomega" 10 11 "github.com/oam-dev/cluster-gateway/e2e/framework" 12 ) 13 14 func TestMain(m *testing.M) { 15 gomega.RegisterFailHandler(ginkgo.Fail) 16 flag.BoolVar(&direct, "direct", false, "Indicating direct access to the spoke cluster") 17 framework.ParseFlags() 18 19 os.Exit(m.Run()) 20 } 21 22 func RunE2ETests(t *testing.T) { 23 ginkgo.RunSpecs(t, "ClusterGateway e2e suite -- gateway benchmark") 24 } 25 26 func TestE2E(t *testing.T) { 27 RunE2ETests(t) 28 }