RE: [Cppunit-devel] Unit Test Results in xml and Ant Integration
Brought to you by:
blep
|
From: Ravi D. <Rav...@va...> - 2002-04-04 16:54:00
|
Hello, I am attaching a sample ant file that I have ... I have written
custom ant tasks MsDevExec and CppUnit that wrap exec ant task ..
I am a novice c++ programmer .... I have been working in Java for the last 4
years ...
Can u mail me a complete code sample for the example that you gave below ..
Thanks
Ravi
-----Original Message-----
From: Pedro Ferreira [mailto:ped...@in...]
Sent: Thursday, April 04, 2002 4:55 AM
To: 'Ravi Dodla'; cpp...@li...
Subject: RE: [Cppunit-devel] Unit Test Results in xml and Ant
Integration
Hi Ravi,
> I am trying to setup Continuous Integration with Ant and
> Cruise Control for a C++ project ..
Did you find it difficult to set up Ant in a C++ environment?
Could you be so kind as to send me one or two example Ant files or
point me to some examples?
> Is there a convinient way to run cppunit test suites and get
> the results in a xml format ...
Something like this should work:
TestResult result;
Test* test = ...
test -> run (&result);
ofstream output ("tests.xml");
XmlOutputter outputter (&result, output);
outputter.write ();
output.close ();
HTH and TIA,
Pedro
|