Cobertura没有找到任何仪表课程

时间:2012-07-04 08:23:20

标签: java cobertura

我是Cobertura的新手,我正在尝试从compliled jar文件中检测类 解压后我运行以下命令:

  

D:\ cobertura-1.9.4.1 \ 7.6.300.01> D:\ cobertura-1.9.4.1 \ cobertura-instrument.bat --basedir D:\ cobertura-1.9.4.1 \ 7.6.300.01
  Cobertura 1.9.4.1 - GNU GPL许可(无担保) - 请参阅COPYRIGHT文件
  检测0个文件
  Cobertura:保存0班的信息   仪器时间:0ms

在D:\ cobertura-1.9.4.1 \ 7.6.300.01中有类文件。
为什么cobertura找不到它们?

1 个答案:

答案 0 :(得分:1)

http://cobertura.sourceforge.net/commandlinereference.html。您没有指定要使用的类。

  

cobertura-instrument.bat [--basedir dir] [ - datafile file]   [--destination dir] [--ignore regex] 班级 [...]

     

注意:可以单独指定类,也可以指定为目录树   包含多个类。例如:

     

cobertura-instrument.bat --destination C:\ MyProject \ build \ instrumented C:\ MyProject \ build \ classes

(强调我的)

相关问题