2012-07-04 66 views
0

我是Cobertura的新手,我試圖從compliled jar文件中檢測類。
拆包我運行下面的命令後:Cobertura沒有找到任何儀器類

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許可證(無擔保) - 參見版權文件
0插入檢測文件
的Cobertura:0班保存的信息。
儀時間:0毫秒

在d:\的Cobertura-1.9.4.1 \ 7.6.300.01類文件的位置。
爲什麼cobertura無法找到它們?

回答

1

請參閱http://cobertura.sourceforge.net/commandlinereference.html。您沒有指定要使用的類。

的Cobertura-instrument.bat [--basedir目錄] [--datafile文件] [--destination目錄] [--ignore正則表達式] [...]

注意:類可以單獨指定,也可以指定爲包含多個類的目錄樹 。例如:

的Cobertura-instrument.bat --destination C:\ MyProject的\建立\儀表C:\ MyProject的\建立\類

(重點煤礦)