From: <Ken...@mi...> - 2005-11-30 16:46:35
|
Does anyone have a simple example that they can show me? Thank you once again! "Karr, David" <dav...@wa...> Sent by: cru...@li... 11/29/2005 11:30 AM To <Ken...@mi...>, <cru...@li...> cc Subject RE: [Cruisecontrol-user] how to run unit tests and see their results in CruiseControl I think you might have the same mistaken impression I had when I first started looking at CruiseControl. CruiseControl does not directly run unit tests, it just allows for junit report files that are generated from the build to be properly merged into the build report. Structure your build so that the unit tests are run, and the XML output files are generated from JUnit, and then the "log" element can merge them in. -----Original Message----- From: cru...@li... [mailto:cru...@li...] On Behalf Of Ken...@mi... Sent: Tuesday, November 29, 2005 9:21 AM To: cru...@li... Subject: [Cruisecontrol-user] how to run unit tests and see their results in CruiseControl Hi everyone, I am new to CruiseControl. Currently, I have the BuildLoop set up, but I was a bit lost as to how I can incorporate unit tests into the build process so that when the build has completed successfully, unit tests can be run against what I've built and I can eventually see the test results as part of the build results in my logs. I read in the "Getting Started with the Source Distribution" webpage that in order for the "unittests" report to work, I'll need to tell CruiseControl to merge a separate XML log files generated by <junit> and <checkstyle> into my main CruiseControl log file. This is done by adding a <!-- directory to write build logs to --> <log logdir="logs/MY_PROJECT_1"> <merge dir="checkout/MY_PROJECT_1/build/junit-reports/"/> </log> into config.xml Let's take for example I have a simple project that builds HelloWorld.java and that program only prints "This is just a simple test". How can tell CruiseControl to run a unit test to see if my complied HelloWorld program can print "This is just a simple test"? Any help and suggestion would be greatly appreciated. ______________________________ Kenneth Tam Financial Risk Management Milliman Consultants and Actuaries 312-499-5781 ************************************************************************************** This communication is intended solely for the addressee and is confidential. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. Unless indicated to the contrary: it does not constitute professional advice or opinions upon which reliance may be made by the addressee or any other party, and it should be considered to be a work in progress. ************************************************************************************** ************************************************************************************** This communication is intended solely for the addressee and is confidential. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. Unless indicated to the contrary: it does not constitute professional advice or opinions upon which reliance may be made by the addressee or any other party, and it should be considered to be a work in progress. ************************************************************************************** |