Hi Ashley,
probably you should first get an idea how Ant builds work before you
start adding code coverage to it.
Please understand that we cannot provide support for Ant itself. As a
starting point you might work through the tutorials in their manuals:
http://ant.apache.org/manual/index.html
Regards,
-marc
On 20.09.16 14:10, Ashley Simon wrote:
Hi,
Yes, the code is written in java.My mistake !
Is there any way to have check the whole folder ?
Here, I guess the class name can take a particular class , so when
giving * or the whole folder name ,It is giving error.
I tried with module..but it says <java> does not support nested module.
And there are no jar files , so I cant give any jar attribute.
Currently I wrote a code that commented the whole <java> part and gave
the path for the class files in <junit> itself. So, is it necessary to
give that part ?
Can you also say whether the <target name=test> is included in our
build.xml for executing the test-cases in our project ?
The newly written code :
<target name="test">
<jacoco:coverage>
<junit fork="true" forkmode="once">
<test name="CodeTest" filtertrace="true"/>
<classpath path="${result.classes.dir}">
<batchtest fork="yes" todir="${result.exec.file}">
<fileset dir="${result.classes.dir}">
<include name="**/*Test*.class"/>
</fileset>
</batchtest>
</classpath>
</junit>
</jacoco:coverage>
</target>
--
You received this message because you are subscribed to the Google
Groups "JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected]
<mailto:[email protected]>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/jacoco/04295ae7-c50d-4964-a065-f747b267a9c3%40googlegroups.com
<https://groups.google.com/d/msgid/jacoco/04295ae7-c50d-4964-a065-f747b267a9c3%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "JaCoCo
and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jacoco/5df5beae-3396-ac1e-5049-fb1f466183a3%40mountainminds.com.
For more options, visit https://groups.google.com/d/optout.