使用鼻子覆盖率报告生成包名称属性

时间:2014-07-01 21:29:34

标签: python jenkins cobertura nosetests coverage.py

我正在Jenkins和

中配置报告
nosetests --with-xcoverage

给我带有空名称属性的XML:

<packages> <package branch-rate="0" complexity="0" line-rate="0.282" name="">

导致覆盖率报告看起来有点难看:

enter image description here

我想生成XML,如:

<packages>
  <package name="src" line-rate="0.8125" branch-rate="0.7248">

在覆盖文件http://nedbatchelder.com/code/coverage/config.html中找不到任何内容 - 可以开箱即用吗?

0 个答案:

没有答案