问题
According to Pitest's documentation, it seems that this should be simple, but it is giving me some trouble. I should be able to have
java -cp <your classpath> \
org.pitest.mutationtest.commandline.MutationCoverageReport \
--reportDir c:\\mutationReports \
--targetClasses example.foo.* \
--sourceDirs c:\\myProject\\src \
--targetTests example.foo*
but I don't know what some of those things should be for my project, such as "<your classpath>".
My project's file structure looks like this:
Ultimately I want to put this in a .bat file and run it on TeamCity for my CI
Any help would be appreciated!
回答1:
The command line parameter should cover every single jar you would need to build your project (when making the project inside an IDE it should provide a classpath for you that you can use in command line).
来源:https://stackoverflow.com/questions/28576737/run-pitest-from-the-command-line