« Return to Thread: Ruby and CruiseControl

Re: Ruby and CruiseControl

by Johan Nilsson-4 :: Rate this Message:

Reply to Author | View in Thread

Jeffrey Fredrick wrote:

> On 6/27/06, Johan Nilsson <r.johan.nilsson@...> wrote:
>> Edward Summers wrote:
>>> So I saw some talk way back when about a RakeBuilder for
>>> CruiseControl...but I don't see any established way of integrating
>>> CC with Ruby.  I can schedule an <exec> just fine, and can see when
>>> builds fail using the return code...but I'd like to be able to see
>>> which tests failed etc...
>>>
>>> Has anyone cooked up something for CC that groks test/unit output?
>>> If not does anyone have an opinion about how fruitful/easy it would
>>> be to create one?
>>
>> I guess you could implement your own xml output testrunner, and
>> merge the output to the log. I think there's already an xml
>> testrunner but I'd guess the format's not junit compatible (is the
>> junit format actually documented somewhere?).
>>
>> We're in the middle of testing/implementing a transforming log merger
>> plug-in, accepting an XSLT file as argument, for similar reasons to
>> yours. Can't release the source though.
>
> output doesn't need to fully match the ant output, only the parts that
> CC's unittests.xsl uses. as long as you can get a file w/the test
> output from ruby (xml or even plain text) should be easy to write
> something to convert it into the appropriate file format and then
> merge.  I even did this at one point for WinRunner -- wrote a custom
> ant task to convert their plain text output into an xml file.

There's also testdetails.xsl. Same requirements as for unittests.xsl?

>
> wrt the xslt why not just use the ant xslt and then merge the
> transformed file?

<grin>Because I'm a C++ programmer and don't know ant?</grin> Does the xslt
task take a dir and/or wildcard specification for the input files/output
dir?

I'd be happy for a simple example on how to configure CC for the ant xslt
transformation. Do I only need the CC distribution, or would I also need a
separate ant installation? I'm using CC 2.4.1.

Thanks // Johan



Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Cruisecontrol-user mailing list
Cruisecontrol-user@...
https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user

 « Return to Thread: Ruby and CruiseControl