gpt4 book ai didi

java - 从命令行运行 Pitest

转载 作者:塔克拉玛干 更新时间:2023-11-03 04:35:59 25 4
gpt4 key购买 nike

根据 Pitest 的 documentation ,看起来这应该很简单,但它给我带来了一些麻烦。我应该可以拥有

java -cp <your classpath> \
org.pitest.mutationtest.commandline.MutationCoverageReport \
--reportDir c:\\mutationReports \
--targetClasses example.foo.* \
--sourceDirs c:\\myProject\\src \
--targetTests example.foo*

但我不知道我的项目应该使用哪些东西,例如“ ”。

我的项目的文件结构如下所示:

enter image description here

最终我想把它放在一个 .bat 文件中并在我的 CI 的 TeamCity 上运行它

如有任何帮助,我们将不胜感激!

最佳答案

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

关于java - 从命令行运行 Pitest,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28576737/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com