Re: [NAnt-users] 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.comhttp://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
Re: [NAnt-users] 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=120 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.comhttp://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.comhttp://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
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:abr...@awrcorp.com] Sent: 2011-10-05 17:14 To: Chris Fouts; nant-users@lists.sourceforge.net 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=120 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.comhttp://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.comhttp://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
Re: [NAnt-users] Nant hookup up with CxxTest or CppUnit
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: abr...@awrcorp.com W: http://www.awrcorp.comhttp://www.awrcorp.com/ From: Chris Fouts [mailto:chris.fo...@caemilusa.com] Sent: Wednesday, October 05, 2011 4:17 PM To: nant-users@lists.sourceforge.net 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:abr...@awrcorp.com] Sent: 2011-10-05 17:14 To: Chris Fouts; nant-users@lists.sourceforge.net 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=120 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.comhttp://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.comhttp://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
[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 of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2dcopy2___ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users