0
我想與螞蟻運行Jacaco。當我的測試執行時,覆蓋範圍僅顯示在我的測試類中,但不適用於實際代碼。Jacoco與螞蟻沒有顯示覆蓋
我的Ant代碼
<target name="test">
<mkdir dir="${result.report.dir}"/>
<!-- Wrap test execution with the JaCoCo coverage task -->
<jacoco:coverage destfile="${result.exec.file}">
<junit printsummary="yes" haltonfailure="false" haltonerror="false" fork="true" forkMode="perTest" showoutput="true">
<classpath>
<fileset dir="${basedir}/lib">
<include name="**/*.jar" />
</fileset>
<path refid="compile.class.path"/>
</classpath>
<formatter type="xml"/>
<batchtest fork="true" todir="${result.report.dir}" haltonerror="false">
<fileset dir="${src.dir}">
<include name="**/*Test*.java"/>
</fileset>
</batchtest>
</junit>
</jacoco:coverage>
</target>