From e6338f95c26b36efb01945fd197d79f194f613c3 Mon Sep 17 00:00:00 2001 From: Peter-Josef Meisch Date: Sat, 9 Sep 2023 08:31:35 +0200 Subject: [PATCH] Update TESTING.adoc Removed the section about mutation testing as this dependency has never really been used and was already removed --- TESTING.adoc | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/TESTING.adoc b/TESTING.adoc index 0f9b44704..f30c7efe3 100644 --- a/TESTING.adoc +++ b/TESTING.adoc @@ -18,24 +18,3 @@ is run. There must be _docker_ running, as the integration tests use docker to s Integration tests are tests that have the Junit5 Tag `@Tag("integration-test")` on the test class. Normally this should not be set explicitly, but the annotation `@SpringIntegrationTest` should be used. This not only marks the test as integration test, but integrates an automatic setup of an Elasticsearch Testcontainer and integrate this with Spring, so that the required Beans can be automatically injected. Check _src/test/java/org/springframework/data/elasticsearch/JUnit5SampleRestClientBasedTests.java_ as a reference setup - -== Mutation testing - -The pom includes a plugin dependency to run mutation tests using [pitest](https://pitest.org/). These tests must be explicitly configured and run, they are not included in the normal build steps. Before pitest can run, a normal `./mvnw test` must be executed. The configuration excludes integration tests, only unit tests are considered. - - -pitest can be run directly from the commandline ----- -./mvnw org.pitest:pitest-maven:mutationCoverage ----- -This will output an html report to _target/pit-reports/YYYYMMDDHHMI_. - -To speed-up repeated analysis of the same codebase set the withHistory parameter to true. ----- -./mvnw -DwithHistory org.pitest:pitest-maven:mutationCoverage ----- - -The classes to test are defined either in the pom.xml or can be set on the commandline: ----- -./mvnw -DwithHistory org.pitest:pitest-maven:mutationCoverage -DtargetClasses="org.springframework.data.elasticsearch.support.*" -----