Is the XML output going to be similar to JUnit ???
Thanks,
Luis Joaquim
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2002-05-24
Here is an example which builds Complexe.exe
<?xml version="1.0" encoding="UTF-8"?>
<project name="jcm" default="JUNIT" basedir="d:/cppunit/cppunit-1.8.0/pkhgtest">
<target name="JUNIT">
<available property="junit.present" classname="junit.framework.TestCase"/>
</target>
Has anyone got experience of how you can run CPPUnit from Ant for a particular set of test.ie any that come as examples with CPPUNit.
Also anyone know when you will be able to get XML output similar (identical please) to JUnit?
trying to get the same information.
Is the XML output going to be similar to JUnit ???
Thanks,
Luis Joaquim
Here is an example which builds Complexe.exe
<?xml version="1.0" encoding="UTF-8"?>
<project name="jcm" default="JUNIT" basedir="d:/cppunit/cppunit-1.8.0/pkhgtest">
<target name="JUNIT">
<available property="junit.present" classname="junit.framework.TestCase"/>
</target>
<target name="writehelp">
<exec dir="d:/cppunit/cppunit-1.8.0/pkhgtest" executable="cmd" output="d:/cppunit/cppunit-1.8.0/pkhgtest/dir.txt">
<arg line="/c g++ --help "/>
</exec>
</target>
<target name="buildcomplex">
<exec dir="d:/cppunit/cppunit-1.8.0/pkhgtest" executable="cmd" output="d:/cppunit/cppunit-1.8.0/pkhgtest/gpp.txt">
<arg line="/c g++ -o Complex.exe Complex.cc -lcppunit "/>
</exec>
</target>
</project>