Re: [Boost-users] boost.test and Cruise Control
-----Original Message----- From: Matt Schuckmann Sent: Thursday, August 24, 2006 11:43 AM Has anybody out there integrated tests built on boost.test with Cruise Control or Cruise Control .NET. ...snip... Hi Matt, We currently use CruiseControl.NET and boost::test for continuous integration and testing of our deliveries. What we'll typically do is create a testing project (.exe) for each module (.dll) in our system and invoke it from an NAnt script that we call from a CruiseControl task. As new testing projects are created we add them to the NAnt unit-testing target. NAnt can report non-zero return values from executables as being failures and CruiseControl can be configured to regard these as either build or test failures depending on how it's configured. Jerry Ferentinos Basic Research Informatics Merck Frosst Center for Therapeutic Research www.merckfrosstlab.ca We've started creating Unit Tests and we are just starting to use Cruise Control for continuous build integration and I'd like to have Cruise Control run and report on the unit tests. A quick look around Cruise Control only shows integration with NUnit. I don't know how tough or easy it is to make something workable with Boost.Test Sorry if this has already been addressed I did try to search for it but came with nothing in my new reader and the web interface is down. Thanks Matt S. _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users ------------------------------------------------------------------------------ Notice: This e-mail message, together with any attachments, contains information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station, New Jersey, USA 08889), and/or its affiliates (which may be known outside the United States as Merck Frosst, Merck Sharp & Dohme or MSD and in Japan, as Banyu - direct contact information for affiliates is available at http://www.merck.com/contact/contacts.html) that may be confidential, proprietary copyrighted and/or legally privileged. It is intended solely for the use of the individual or entity named on this message. If you are not the intended recipient, and have received this message in error, please notify us immediately by reply e-mail and then delete it from your system. ------------------------------------------------------------------------------
Up to using NAnt that sounds pretty much like what I want to do. Right now I'm pretty much just having CC.NET do the build via the Dev Studio command line interface. We are still on .NET 2003 right now but the 2005 disks should be here next week. What does using NAnt buy you that CC.NET doesn't have? Do you have CC.NET do anything with the results of the unit tests, I.E have it display the tests/test_suites run, have it display errors and maybe even notify when people when test fail? I know that Boost.Test can produce xml output but I don't know how to begin to have CC.NET consume it. Matt S. Ferentinos, Jerry wrote:
-----Original Message----- From: Matt Schuckmann Sent: Thursday, August 24, 2006 11:43 AM
Has anybody out there integrated tests built on boost.test with Cruise Control or Cruise Control .NET. ...snip...
Hi Matt,
We currently use CruiseControl.NET and boost::test for continuous integration and testing of our deliveries. What we'll typically do is create a testing project (.exe) for each module (.dll) in our system and invoke it from an NAnt script that we call from a CruiseControl task. As new testing projects are created we add them to the NAnt unit-testing target. NAnt can report non-zero return values from executables as being failures and CruiseControl can be configured to regard these as either build or test failures depending on how it's configured.
Jerry Ferentinos Basic Research Informatics Merck Frosst Center for Therapeutic Research www.merckfrosstlab.ca
We've started creating Unit Tests and we are just starting to use Cruise Control for continuous build integration and I'd like to have Cruise Control run and report on the unit tests.
A quick look around Cruise Control only shows integration with NUnit. I don't know how tough or easy it is to make something workable with Boost.Test
Sorry if this has already been addressed I did try to search for it but came with nothing in my new reader and the web interface is down.
Thanks Matt S.
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
------------------------------------------------------------------------------ Notice: This e-mail message, together with any attachments, contains information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station, New Jersey, USA 08889), and/or its affiliates (which may be known outside the United States as Merck Frosst, Merck Sharp & Dohme or MSD and in Japan, as Banyu - direct contact information for affiliates is available at http://www.merck.com/contact/contacts.html) that may be confidential, proprietary copyrighted and/or legally privileged. It is intended solely for the use of the individual or entity named on this message. If you are not the intended recipient, and have received this message in error, please notify us immediately by reply e-mail and then delete it from your system.
------------------------------------------------------------------------------
Matt Schuckmann wrote:
Up to using NAnt that sounds pretty much like what I want to do. Right now I'm pretty much just having CC.NET do the build via the Dev Studio command line interface. We are still on .NET 2003 right now but the 2005 disks should be here next week.
What does using NAnt buy you that CC.NET doesn't have?
Do you have CC.NET do anything with the results of the unit tests, I.E have it display the tests/test_suites run, have it display errors and maybe even notify when people when test fail? I know that Boost.Test can produce xml output but I don't know how to begin to have CC.NET consume it.
We've only been using regular CruiseControl (the Java-based variant), but have integrated support for Boost.Test output. I don't know if it applies to CC.NET as well. What you basically need to do is to: 1. Generate the test logs in junit-compatible (or perhaps Nunit in your case) XML format 2. Merge them with the 'grand' XML log And it should work. Issue (1) above was the main problem, as the Boost.Test XML format isn't identical to junit's. There's a couple of ways around this. We solved that by creating our own variant of the Merge task, which also took an XSL template as argument. This XSL template is use to transform the logs into a format understandable by CC. There's also the possibility to use the Ant "xsl" task, but that didn't really fit our requirements. Finally, you could create you own specialized xml outputter for Boost.Test. We've used this approach to integrate CppUnit XML output as well. Can't make the actual templates available in public though (sorry). HTH // Johan
participants (3)
-
Ferentinos, Jerry
-
Johan Nilsson
-
Matt Schuckmann