PM 5:38:12 PIT >> INFO : Verbose logging is disabled. If you encounter an problem please enable it before reporting an issue.PM 5:38:12 PIT >> INFO : Sending 0 test classes to slavePM 5:38:12 PIT >> INFO : Sent tests to slavePM 5:38:12 PIT >> INFO : Calculated coverage in 0 seconds.PM 5:38:12 PIT >> INFO : Created 0 mutation test unitsException in thread "main" org.pitest.help.PitHelpError: No mutations found. This probably means there is an issue with either the supplied classpath or filters.See http://pitest.org for more details.at org.pitest.mutationtest.tooling.MutationCoverage.checkMutationsFound(MutationCoverage.java:272)at org.pitest.mutationtest.tooling.MutationCoverage.runReport(MutationCoverage.java:144)at org.pitest.mutationtest.tooling.EntryPoint.execute(EntryPoint.java:100)at org.pitest.mutationtest.tooling.EntryPoint.execute(EntryPoint.java:42)at org.pitest.mutationtest.commandline.MutationCoverageReport.runReport(MutationCoverageReport.java:69)at org.pitest.mutationtest.commandline.MutationCoverageReport.main(MutationCoverageReport.java:41)
------------------------Specification for checkMuatationsFound----------------------
private void checkMutationsFound(List<? extends TestUnit> tus) {
if (tus.isEmpty()) {
if (this.data.shouldFailWhenNoMutations()) {
throw new PitHelpError(Help.NO_MUTATIONS_FOUND, new Object[0]);
}
LOG.warning(Help.NO_MUTATIONS_FOUND.toString());
}
}---------------------------------------------------------------------------------------------------------
java -cp .;c:\workspace\pitest-command-line-0.32.jar;c:\workspace\PIT_cp\*; \org.pitest.mutationtest.commandline.MutationCoverageReport \--reportDir C:\workspace\mutationReports \--sourceDirs C:\workspace\TestingNumber\src \--targetClasses number.Number \--targetTests test.NumberTestCase
-------------------------The follows is a structure of my project : ------------------------------------
c:
|----workspace
|-----pitest-command-line-0.32.jar
|-----PIT_cp (directory)
| |--------junit-4.11.jar
| |--------pitest-0.32.jar
|
|-----TestingNumber (project)
|----src
|
| -----number
| |--------Number.java (code-under-test, mutable code)
|
| -----test|--------NumberTestCase.java (a test case using Junit 4)-----------------------------------------------------------------------------------------------------------------
I have tried to run Pitest via command line, but there is a problem.I had an error message such as the follows :
Exception in thread "main" org.pitest.help.PitHelpError: No mutations found. This probably means there is an issue with either the supplied classpath or filters.
See http://pitest.org for more details.
targetClasses="build.dir.*" //path to binary files of project including code and testtargetTests="build.dir.*" //path to binary files of project including code and test