I am currently trying to configure a build file to run junit test using ant xml file. However ClassNotFound Exception is being encountered. The following is part of the code that shall run the jUnit test:
<target name="junitreport" >
<junit printsummary="yes" haltonfailure="no">
<classpath refid="JUnit 4.libraryclasspath"/>
<formatter type="plain"/>
<formatter type="xml"/>
<batchtest todir="${junit.output.dir}">
<fileset dir="src/tests">
<include name="CalculatorTest.java"/>
</fileset>
</batchtest>
</junit>
</target>
How this can be solved?