From 3f6876719a9baa507b1c66b362ebf774cfa9ddba Mon Sep 17 00:00:00 2001 From: csviri Date: Wed, 12 Apr 2023 13:06:02 +0200 Subject: [PATCH] docs: parallel running --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e7023e5..13fcc14 100644 --- a/README.md +++ b/README.md @@ -84,7 +84,7 @@ class KubeApiServerTest { ### Fabric8 Kubernetes Client Support -There is a dedicated support for [Fabric8 Kubernetes Client](https://github.com/fabric8io/kubernetes-client). +There is dedicated support for [Fabric8 Kubernetes Client](https://github.com/fabric8io/kubernetes-client). Using dependency: @@ -110,6 +110,12 @@ class JUnitFabric8ClientInjectionTest { } ``` +### Support for Parallel Execution in Junit5 + +Parallel test execution is explicitly supported for JUnit5, in fact the project tests are running parallel. +Running a new instance for each test case. This speeds up the tests (in our case >75%) in a way that test cases are also +fully isolated from each other. See the [surefire plugin config](https://github.com/csviri/jenvtest/blob/6bb0510208d33cc64938b7a4518ecd0c21de8b26/pom.xml#L222-L237). + ### Testing Mutation and Validation Webhooks An additional benefits os running K8S API Server this way, is that it makes easy to test