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>