Skip to content

Commit e6338f9

Browse files
authored
Update TESTING.adoc
Removed the section about mutation testing as this dependency has never really been used and was already removed
1 parent f4a5796 commit e6338f9

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

Diff for: TESTING.adoc

-21
Original file line numberDiff line numberDiff line change
@@ -18,24 +18,3 @@ is run. There must be _docker_ running, as the integration tests use docker to s
1818

1919
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
2020
that the required Beans can be automatically injected. Check _src/test/java/org/springframework/data/elasticsearch/JUnit5SampleRestClientBasedTests.java_ as a reference setup
21-
22-
== Mutation testing
23-
24-
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.
25-
26-
27-
pitest can be run directly from the commandline
28-
----
29-
./mvnw org.pitest:pitest-maven:mutationCoverage
30-
----
31-
This will output an html report to _target/pit-reports/YYYYMMDDHHMI_.
32-
33-
To speed-up repeated analysis of the same codebase set the withHistory parameter to true.
34-
----
35-
./mvnw -DwithHistory org.pitest:pitest-maven:mutationCoverage
36-
----
37-
38-
The classes to test are defined either in the pom.xml or can be set on the commandline:
39-
----
40-
./mvnw -DwithHistory org.pitest:pitest-maven:mutationCoverage -DtargetClasses="org.springframework.data.elasticsearch.support.*"
41-
----

0 commit comments

Comments
 (0)