Menu

running CPPUnit from Ant

Help
2002-01-22
2002-05-24
  • Dean Margerison

    Dean Margerison - 2002-01-22

    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?

     
    • Luis Joaquim

      Luis Joaquim - 2002-05-20

      trying to get the same information.

      Is the XML output going to be similar to JUnit ???

      Thanks,

      Luis Joaquim

       
    • Anonymous

      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>

      <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>

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.