« Return to Thread: Ruby and CruiseControl

Re: Ruby and CruiseControl

by Jeffrey Fredrick-2 :: Rate this Message:

Reply to Author | View in Thread

On 6/29/06, Johan Nilsson <r.johan.nilsson@...> wrote:

> 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?

I think testdetails wants a bit more info. but that xsl is used by the
test details tab and you might choose to just ignore it to start with
-- the info on failing tests is more important than the detail info
(imho).


> >
> > 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>


ah!  I thought you were doing your exec from ant!  :)

you might try using antbuild to do the exec and then run the xslt task
on the output.

> 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.

here's the doc on the xslt task w/examples at the bottom of the page.

http://ant.apache.org/manual/CoreTasks/style.html

you should be able to use the ant that ships w/the CC distribution.

Jtf

--

http://www.developertesting.com/

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