我有一份由Karma / Cobertura生成的报道报告。
看起来像这样:
<?xml version="1.0" ?>
<!DOCTYPE coverage SYSTEM "http://cobertura.sourceforge.net/xml/coverage-04.dtd">
<coverage lines-valid="91293" lines-covered="22464" line-rate="0.24609999999999999" branches-valid="50346" branches-covered="3333" branch-rate="0.0662" timestamp="1478206709367" complexity="0" version="0.1">
<sources>
<source>/home/ubuntu/my-website</source>
</sources>
<packages>
<package name="core" line-rate="0.4032" branch-rate="0.2327" >
<classes>
<class name="ajax.js" filename="src/ajax.js" line-rate="0.4576" branch-rate="0.2778" >
<methods>
<method name="(anonymous_1)" hits="1" signature="()V" >
<lines><line number="7" hits="1" /></lines>
</method>
...
如何使用此文件查看带注释的代码?