Adds support to pitest for JUnit 5 and the Jupiter api.
- 1.0.0 requires pitest 1.9.0 or above and JUnit Platform 1.8.x (Jupiter 5.8.0)
- 0.16 requires pitest 1.4.0 or above and JUnit Platform 1.8.x (Jupiter 5.8.0)
- 0.15 requires pitest 1.4.0 or above and JUnit Platform 1.8.x (Jupiter 5.8.0)
- 0.5-0.14 requires pitest 1.4.0 or above and JUnit Platform 1.7.x (Jupiter 5.7.x)
- 0.4 requires pitest 1.3.2 or above
- 0.3 requires pitest 1.3.0 or 1.3.1
- 0.2 requires pitest 1.2.5
The plugin has been built against JUnit platform 1.5.0 - you may encounter issues if you use it with a different version.
To activate the plugin it must be placed on the classpath of the pitest tool (not on the classpath of the project being mutated).
<plugins>
<plugin>
<groupId>org.pitest</groupId>
<artifactId>pitest-maven</artifactId>
<version>1.9.0</version>
<dependencies>
<dependency>
<groupId>org.pitest</groupId>
<artifactId>pitest-junit5-plugin</artifactId>
<version>1.0.0</version>
</dependency>
</dependencies>
</plugin>
</plugins>
For Pitest configuration options, have a look at http://pitest.org/quickstart/maven/.
plugins {
id 'java'
id 'info.solidsoft.pitest' version '1.9.0'
}
pitest {
//adds dependency to org.pitest:pitest-junit5-plugin and sets "testPlugin" to "junit5"
junit5PluginVersion = '1.0.0'
// ...
}
See gradle-pitest-plugin documentation for more configuration options.
- #64 Errors in
BeforeAll
methods do not register
Plugin originally created by @tobiasstadler.