I gave Spock a go after seeing a talk at the London GGUG and I really
like the power assert stuff it puts in the junit reports. But the
formatting is a bit off so I modified xsl that comes with junit to
make the output a little more aligned.
To get it working you need Grails 1.2.1+. Edit
scripts/_GrailsTest.groovy and set junitReportStyleDir to the
directory that will contain the xsl (e.g. junitReportStyleDir =
"test/styles"). Then put the attached xsl into your chosen directory.
I haven't touched the no-frames xsl but I don't think that gets used
anyway.
I've only written a few unit tests so far and it seems fine. So I
don't know if it breaks the formatting of a whole suite of tests.
If someone tell me a better way of overriding something in
_GrailsTest.groovy that'd be ace.
Shin
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email