Skip to content

Instantly share code, notes, and snippets.

@sttts
Created May 29, 2019 09:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sttts/83ae4a5c89d5bea626034bb8cf397343 to your computer and use it in GitHub Desktop.
Save sttts/83ae4a5c89d5bea626034bb8cf397343 to your computer and use it in GitHub Desktop.
Gingko run
package apimachinery
import (
"testing"
"github.com/onsi/ginkgo"
ginkgoconfig "github.com/onsi/ginkgo/config"
"github.com/onsi/gomega"
"k8s.io/kubernetes/test/e2e/framework"
)
func TestCRDOpenapi(t *testing.T) {
gomega.RegisterFailHandler(ginkgo.Fail)
ginkgoconfig.GinkgoConfig.FocusString = "CustomResourceConversionWebhook" // that's a regex
ginkgoconfig.GinkgoConfig.FailFast = true
ginkgoconfig.GinkgoConfig.ParallelTotal = 1
ginkgoconfig.GinkgoConfig.ParallelNode = 1
ginkgoconfig.DefaultReporterConfig.Verbose = true
ginkgoconfig.DefaultReporterConfig.FullTrace = true
framework.TestContext.Provider = "local"
framework.TestContext.KubectlPath = "/Users/sts/Quellen/origin/src/github.com/openshift/origin/_output/local/bin/darwin/amd64/kubectl"
framework.TestContext.KubeConfig = "/Users/sts/.kube/config"
framework.AfterReadingAllFlags(&framework.TestContext)
ginkgo.RunSpecs(t, "tests")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment