Re: [Cppunit-devel] Unit Test Results in xml and Ant Integration
Brought to you by:
blep
|
From: Baptiste L. <gai...@fr...> - 2002-04-04 15:38:33
|
Using CppUnit 1.7.10, you just replace TextUi::TestRunner default outputter
with the XML outputter:
CppUnit::TextUi::TestRunner runner;
runner.addTest( ExampleTestCase::suite() );
runner.setOutputter( new
Unit::XmlOutputter(
&runner.result(),
std::cout ) ); // stream the XML is written to
runner.run( "", false ); // Run all tests and don't wait
=> look up TextUi::TestRunner for some more details.
Let's me know if there is problem for Ant integration.
You can also find some informations in examples/cppunittest/XmlOutputterTest.cpp.
Baptiste.
----- Original Message -----
From: "Ravi Dodla" <Rav...@va...>
To: <cpp...@li...>
Sent: Thursday, April 04, 2002 1:09 AM
Subject: [Cppunit-devel] Unit Test Results in xml and Ant Integration
> Hello,
> I am trying to setup Continuous Integration with Ant and Cruise Control for
> a C++ project ..
>
> Is there a convinient way to run cppunit test suites and get the results in
> a xml format ...
>
> Please refer me to any examples if you can ...
>
> Thanks
> Ravi
>
> _______________________________________________
> Cppunit-devel mailing list
> Cpp...@li...
> https://lists.sourceforge.net/lists/listinfo/cppunit-devel
>
|