This project is part of the TDD workshop 2021 and is purpose is to get a feeling of test driven development.
This project used Java and Maven.
We have to declare the maven-surefire-plugin in the pom.xml file and configure the dependencies of this plugin.
We have to declare the following dependencies:
The junit-platform-surefire-provider dependency allows us to run tests that use either the “old” JUnit (3 or 4) or JUnit 5.
If we want to run tests that use either JUnit 3 or 4, we have to declare the junit-vintage-engine dependency.
If we want to run tests that use JUnit 5, we have to declare the junit-jupiter-engine dependency.
- Junit Jupiter Dependency graph
- JUnit Annotation
sudo sysctl -w vm.max_map_count=524288
sudo sysctl -w fs.file-max=131072
ulimit -n 131072
ulimit -u 8192
docker-compose up
http://sonarqube:9000/
ngrok http 8080
http://*****.ngrok.io/github-webhook
mvn clean test
mvn javadoc:javadoc
mvn javadoc:test-javadoc
mvn test jacoco:report
mvn test jacoco:check
mvn org.pitest:pitest-maven:mutationCoverage
mvn org.pitest:pitest-maven:mutationCoverage -DwithHistory
mvn clean test jacoco:report org.pitest:pitest-maven:mutationCoverage -DhistoryInputFile=target/fasterPitMutationTesting-history.txt -DhistoryOutputFile=target/fasterPitMutationTesting-history.txt -Dsonar.pitest.mode=reuseReport -Dthreads=4 -DtimestampedReports=false
- https://github.com/pitest/pitest-junit5-plugin
- https://mvnrepository.com/artifact/org.pitest/pitest-junit5-plugin
- required to work with JUnit5
- https://mvnrepository.com/artifact/org.pitest/pitest-junit5-plugin