diff --git a/README.md b/README.md index a7cc3a37..ab02b3af 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ func TestMain(m *testing.M) { testenv.Finish( envfuncs.DeleteNamespace(namespace), ) - + // launch package tests os.Exit(testenv.Run(m)) } @@ -93,12 +93,14 @@ func TestKubernetes(t *testing.T) { } return ctx }).Feature() - + // test feature testenv.Test(t, f1, f2) } ``` + #### Running the test + Use the Go testing tooling to run the tests in the package as shown below. The following would run all tests except those with label `type=ns-count`: ``` @@ -106,6 +108,7 @@ go test ./package -args --skip-labels="type=ns-count" ``` ## Examples + See the [./examples](./examples) directory for additional examples showing how to use the framework. ## Community, discussion, contribution, and support diff --git a/examples/third_party_integration/helm/helm_test.go b/examples/third_party_integration/helm/helm_test.go index 05932b75..342c02fc 100644 --- a/examples/third_party_integration/helm/helm_test.go +++ b/examples/third_party_integration/helm/helm_test.go @@ -56,7 +56,7 @@ func TestHelmChartRepoWorkflow(t *testing.T) { Assess("Deployment is running successfully", func(ctx context.Context, t *testing.T, config *envconf.Config) context.Context { deployment := &appsv1.Deployment{ ObjectMeta: v1.ObjectMeta{ - Name: "nginx-nginx-ingress", + Name: "nginx-nginx-ingress-controller", Namespace: namespace, }, Spec: appsv1.DeploymentSpec{},