Run Pitest from the command line

孤街醉人 提交于 2019-12-23 08:28:59

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!