I have root build.gradle and a subproject. Based on the recommendation for 1.5.1, i have configured the subproject as below:
plugins {
id 'java-application'
id 'info.solidsoft.pitest' version '1.5.1'
}
pitest {
targetClasses = ['com.test.*']
pitestVersion = "1.5.1"
outputFormats = ['HTML']
timestampedReports = false
verbose = true
junit5PluginVersion = '0.12'
}
However i see the following error:
7:12:36 PM PIT >> INFO : MINION : 7:12:36 PM PIT >> SEVERE : JUnit was not found on the classpath. PIT requires JUnit 4.6 or above.
See http://pitest.org for more details.
7:12:36 PM PIT >> SEVERE : Error generating coverage. Please check that your classpath contains modern JUnit 4 or PIT test plugin for other test tool (JUnit 5, TestNG, ...) is enabled.
Exception in thread "main" org.pitest.util.PitError: Coverage generation minion exited abnormally. Please check the classpath and/or enable test plugin for used test tool.