You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now, the tests can be run in an IDE. The following describes how this can be done in IntelliJ IDEA and VS Code. It should work
@@ -272,24 +272,24 @@ kustomize_substitutions:
272
272
273
273
### Running specific tests
274
274
275
-
To run a subset of tests, a combination of either one or both of `GINKGO_FOCUS` and `GINKGO_SKIP` env variables can be set.
275
+
To run a subset of tests the `GINKGO_LABEL_FILTER` env variable can be set. See [Ginkgo Spec Labels v2](https://onsi.github.io/ginkgo/MIGRATING_TO_V2#spec-labels) for complete syntax documentation.
276
+
276
277
Each of these can be used to match tests, for example:
277
-
- `[PR-Blocking]`=> Sanity tests run before each PR merge
278
-
- `[K8s-Upgrade]`=> Tests which verify k8s component version upgrades on workload clusters
279
-
- `[Conformance]`=> Tests which run the k8s conformance suite on workload clusters
280
-
- `[ClusterClass]`=> Tests which use a ClusterClass to create a workload cluster
281
-
- `When testing KCP.*`=> Tests which start with `When testing KCP`
278
+
- `PR-Blocking`=> Sanity tests run before each PR merge
279
+
- `K8s-Upgrade`=> Tests which verify k8s component version upgrades on workload clusters
280
+
- `Conformance`=> Tests which run the k8s conformance suite on workload clusters
281
+
- `ClusterClass`=> Tests which use a ClusterClass to create a workload cluster
282
+
- `/When testing KCP.*/`=> Tests which start with `When testing KCP`
282
283
283
284
For example:
284
-
`GINKGO_FOCUS="\\[PR-Blocking\\]" make test-e2e `can be used to run the sanity E2E tests
285
-
`GINKGO_SKIP="\\[K8s-Upgrade\\]" make test-e2e `can be used to skip the upgrade E2E tests
285
+
`GINKGO_LABEL_FILTER="PR-Blocking" make test-e2e `can be used to run the sanity E2E tests
286
+
`GINKGO_LABEL_FILTER="!K8s-Upgrade" make test-e2e `can be used to skip the upgrade E2E tests
286
287
287
288
### Further customization
288
289
289
290
The following env variables can be set to customize the test execution:
290
291
291
-
- `GINKGO_FOCUS`to set ginkgo focus (default empty - all tests)
292
-
- `GINKGO_SKIP`to set ginkgo skip (default empty - to allow running all tests)
292
+
- `GINKGO_LABEL_FILTER`to set ginkgo label filter (default empty - all tests)
293
293
- `GINKGO_NODES`to set the number of ginkgo parallel nodes (default to 1)
294
294
- `E2E_CONF_FILE`to set the e2e test config file (default to ${REPO_ROOT}/test/e2e/config/docker.yaml)
295
295
- `ARTIFACTS`to set the folder where test artifact will be stored (default to ${REPO_ROOT}/_artifacts)
0 commit comments