Re: How to pass results to be displayed somehow via cruisecontrol?

Paul Willworth <[email protected]>
Newsgroups gmane.comp.java.cruise-control.user
Message-ID <[email protected]>
You just have to merge the results from the test into the log file for the build.  Use a log merge in your cruise config like this:
            <log>
                        <merge dir="/IBM/cruise/builds/build/${project.name}/testresults" pattern="TEST-*.xml"/>
            </log>

My jUnit tests output in a format like <testsuite errors="0" failures="0" hostname="server1" name="com.blah" tests="3" time="15.34" timestamp="2011-01-12T00:11:55"><testcase classname="com.whatever" name="myTest" time="5.675" /><system-out /><system-err>error message</system-err></testsuite>

If what your using for testing does not produce this kind of output, you may need to set it up to do so in order for cruise control to parse it.

-Paul

________________________________
From: Steven Zedeck [mailto:[email protected]]
Sent: Thursday, January 13, 2011 6:35 AM
To: [email protected]
Subject: [Cruisecontrol-user] How to pass results to be displayed somehow via cruisecontrol?

Hi,

I'm using Cruisecontrol 2.8.4 under Linux.

I'm trying to determine a way to pass the results of test cases so that they can be displayed in Cruisecontrol. My build.xml file looks like this:

.
.
<target name="test">
        <exec dir="/home/testUser/scripts" executable="./test_more.pl">
       </exec>
    </target>

The problem is that I have many individual tests that need to run after a build. The Perl script test_more.pl calls other Perl scripts. Each Perl script contains approx. 20 individual tests. How do I someone convey the results of each individual test to cruisecontrol? At the very least I'd like to be able to convey the results of each of the Perl scripts.

To make matters worse, since the scripts would take too long to run sequentially, I've created a series of test targets where I can run a specific script on a specific machine, so they all run in parallel. Has anyone experienced something like this? Or is cruisecontrol unable to handle this complexity?

Thanks in advance,
Steve

---
Steven A. Zedeck

P  R  O  L  I  P  H  I  X
Internet-Managed Energy Control

P: (978) 692-3375 x111 * F: (978) 692-3378 *
3 LAN Drive * Suite 100 * Westford, Mass. 01886 * www.proliphix.com<http://www.proliphix.com>

P Please consider the environment before printing this e-mail

------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl

_______________________________________________
Cruisecontrol-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.