私はJaCoCoを初めて使用し、生成しているhtmlレポートがソースにリンクされていない理由を理解しようとしています。
カバレッジ番号は正しく見え、各クラス、次に各メソッドを参照できますが、ソースがわかりません。sourcefilesタグ内でさまざまなことを試しましたが、何も機能していません。他の誰かがこの問題を抱えていましたか?これが私のantスクリプトのスニペットです:
..。
<test name="test.fw.UITestSuite" todir="${logdir}"/>
</junit>
</jacoco:coverage>
<fail if="TestFailed" status="1" message="UI junit test failure detected"/>
<echo message="${src}"/>
<jacoco:report>
<executiondata>
<file file="jacoco.exec"/>
</executiondata>
<structure name="UI">
<classfiles>
<fileset dir="${build}/fw"/>
</classfiles>
<sourcefiles encoding="UTF-8">
<fileset dir="fw" includes="**./*.java"/>
</sourcefiles>
</structure>
<html destdir="report"/>
</jacoco:report>
</target>
..。