Yes using an <exec> task.

For example:

<exec program="analyst.exe" failonerror="false" 
resultproperty="testresult.analyst.exe" verbose="true" timeout="1200000">
                <arg line="/unittest"/>
</exec>

Replace analyst.exe with your own executable which is setup with Cppunit to run 
unittests. Here is a tutorial on setting up Cppunit. I think you should go 
through this first. 
http://www.cs.nmsu.edu/~jeffery/courses/371/cppunit/money_example.html

Adam Bruss
Senior Development Engineer
AWR Corporation
11520 N. Port Washington Rd., Suite 201
Mequon, WI  53092  USA
P: 1.262.240.0291 x104
F: 1.262.240.0294
E: abr...@awrcorp.com
W: http://www.awrcorp.com<http://www.awrcorp.com/>

From: Chris Fouts [mailto:chris.fo...@caemilusa.com]
Sent: Wednesday, October 05, 2011 2:51 PM
To: Adam Bruss; nant-users@lists.sourceforge.net
Subject: RE: Nant hookup up with CxxTest or CppUnit

Yes, I'm using CruiseControl.NET and Nant in my case.

So when you say you have Nant run your executable with a certain flag, you mean 
in an <exec> task block?

-chris

From: Adam Bruss [mailto:abr...@awrcorp.com]
Sent: 2011-09-30 16:54
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] FW: Nant hookup up with CxxTest or CppUnit

From: Adam Bruss
Sent: Friday, September 30, 2011 3:52 PM
To: 'Chris Fouts'
Subject: RE: Nant hookup up with CxxTest or CppUnit

We have nant run our executable with a certain flag which tells it to run the 
unittests and write the results to an xml file using Cppunit::XmlOutputter.

Then we merge that file into the cruisecontrol log and transform it with an xsl 
file to show the test results in the cruisecontrol emails.

Are you using Cruisecontrol?

Adam Bruss
Senior Development Engineer
AWR Corporation
11520 N. Port Washington Rd., Suite 201
Mequon, WI  53092  USA
P: 1.262.240.0291 x104
F: 1.262.240.0294
E: abr...@awrcorp.com
W: http://www.awrcorp.com<http://www.awrcorp.com/>

From: Chris Fouts [mailto:chris.fo...@caemilusa.com]
Sent: Friday, September 30, 2011 3:28 PM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] Nant hookup up with CxxTest or CppUnit

Can someone please point me to an example how Nant can start a test suite using 
CxxTest or CppUnit? I just want to know how Nant gets its feedback from those 
systems. ...or any testing suite really.

-chris



***This e-mail message is intended only for the above named recipient(s)
and may contain information that is sensitive or proprietary. If you have
received this message in error or are not the named recipient(s), please
immediately notify the sender, delete this e-mail message without making
a copy and do not disclose or relay this e-mail message to anyone.***
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to