Hello!
Sorry to bother, but I'm having a problem running pitest through the command line.
This is the command I'm using (Win 10):
java -cp bin;tests\randoop\bin;jars\pitest-1.2.0.jar;jars\pitest-command-line-1.2.0.jar;jars\junit-4.12.jar org.pitest.mutationtest.commandline.MutationCoverageReport --reportDir reports\randoop --targetClasses collections.comparators.FixedOrderComparator --targetTests collections.comparators.FixedOrderComparator_Test --sourceDirs src,tests\randoop\src\
And this is the result:
Exception in thread "main" java.lang.NoClassDefFoundError: org/pitest/mutationtest/config/PluginServices
at org.pitest.mutationtest.commandline.MutationCoverageReport.main(MutationCoverageReport.java:35)
Caused by: java.lang.ClassNotFoundException: org.pitest.mutationtest.config.PluginServices
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 1 more
I've also tried being more specific, but to no avail:
java -cp bin;tests\randoop\bin;jars\pitest-1.2.0.jar;jars\pitest-command-line-1.2.0.jar;jars\junit-4.12.jar org.pitest.mutationtest.commandline.MutationCoverageReport --reportDir reports\randoop --targetClasses collections.comparators.FixedOrderComparator --targetTests collections.comparators.FixedOrderComparator_Test --sourceDirs src,tests\randoop\src\
I get that it is missing a class, but I don't know which, as I believe the classpath is set correctly, mainly because I'm able to run junit using it.
For example, this works:
java -cp bin;tests\randoop\bin;jars\* org.junit.runner.JUnitCore collections.comparators.FixedOrderComparator_Test
JUnit version 4.12
..........................................................................................................................................................................................................
....................................................................................................................................................................................................
Time: 0.686
OK (398 tests)
Thanks for your help!