Run Pitest from the command line

According to the Pitest documentation, it seems like it should be simple, but it gives me some problems. I must 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 these things should be for my project, such as "<yourpathpath>".

My project file structure is as follows:

enter image description here

Ultimately, I want to put this in a .bat file and run it on TeamCity for my CI

Any help would be appreciated!

+7
java command-line teamcity mutation-testing pitest
source share
1 answer

The command line parameter should cover each individual jar that you will need to create your project (when creating a project inside the IDE, it must provide a class path that you can use on the command line).

+1
source share

All Articles