简体   繁体   中英

Run Pitest from the command line

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!

命令行参数应该涵盖构建项目所需的每个jar(当在IDE中创建项目时,它应该为您提供可以在命令行中使用的类路径)。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM