RE: [Cppunit-devel] Unit Test Results in xml and Ant Integration
Brought to you by:
blep
|
From: Pedro F. <ped...@in...> - 2002-04-04 10:54:07
|
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
|