Re: Nant hookup up with CxxTest or CppUnit
Adam Bruss <[email protected]> Wed, 5 Oct 2011 21:29:55 +0000
| Newsgroups | gmane.comp.windows.dotnet.nant.user |
|---|---|
| Message-ID | <[email protected]> |
resultproperty stores what the program returned. Typically it would be 0 if all tests passed or a number > 0 if tests failed - the number being how many failed. Eventually you'll probably want the test results in xml form so you can transform it into the CC.net emails. When you get there I can provide an xsl file which can get you started. By the way this is a decent article on running unittests with CC.net http://confluence.public.thoughtworks.org/display/CCNET/Using+CruiseControl.NET+with+CppUnit 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: [email protected] W: http://www.awrcorp.com<http://www.awrcorp.com/> From: Chris Fouts [mailto:[email protected]] Sent: Wednesday, October 05, 2011 4:17 PM To: [email protected] Subject: Re: [NAnt-users] Nant hookup up with CxxTest or CppUnit Thanks! I'm using CxxTest, not CppUnit, but your example will work since I have a *.exe file to run. I'll have to look further what resultproperty and how I can fit it in my environment. -chris From: Adam Bruss [mailto:[email protected]] Sent: 2011-10-05 17:14 To: Chris Fouts; [email protected] Subject: RE: Nant hookup up with CxxTest or CppUnit 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: [email protected] W: http://www.awrcorp.com<http://www.awrcorp.com/> From: Chris Fouts [mailto:[email protected]] Sent: Wednesday, October 05, 2011 2:51 PM To: Adam Bruss; [email protected] 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:[email protected]] Sent: 2011-09-30 16:54 To: [email protected] 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: [email protected] W: http://www.awrcorp.com<http://www.awrcorp.com/> From: Chris Fouts [mailto:[email protected]] Sent: Friday, September 30, 2011 3:28 PM To: [email protected] 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 [email protected] https://lists.sourceforge.net/lists/listinfo/nant-users