A quick search of the Gradle documentation shows nothing about code coverage -- there is the code-quality plugin but that is about Checkstyle and CodeNarc, what I am looking for is coverage reports using Cobertura or Emma (or something better?). There are recipes on the website: http://docs.codehaus.org/display/GRADLE/Code+Coverage+with +Cobertura, http://docs.codehaus.org/display/GRADLE/Cookbook#Cookbook-usingCobertura, but this is old stuff, fourth-rate in comparison to having a plugin, and to be honest I think this material should be deleted from the website as being a distraction from doing things properly.
(Background: GPars has a "quick hack" get Cobertura reports working done by Dierk, that really needs replacing by something more Gradle mainstream, and Gant is desperately in need of somethign at all on coverage.) I finally (!) alighted on http://docs.codehaus.org/display/GRADLE/Plugins which led me to http://docs.codehaus.org/display/GRADLE/Plugins#Plugins-CoberturaPlugin and http://docs.codehaus.org/display/GRADLE/Plugins#Plugins-Emmaplugin which is great, they are plugins. If Checkstyle and CodeNarc have plugins in the core Gradle system, surely one or both of the Cobertura plugin and the Emma plugin should also be part of the core? Both of these are on GitHub and there appears to be a way of referencing them from a Gradle build file directly, which is both good and bad. It is good since then it can be reference from the source and not from some possibly outdated copy. It si bad because this most likely means there is an assumption of connectivity to the Internet. I appreciate that there is an assumption in the "first world" that everybody on the planet is permanently connected to the Internet, but this is not entirely true. Not only are there hoards of people (including programmers) in the "third world" who only have partial connection to the Internet(if they have Internet at all), some of us in the "second world" (UK can hardly be classed as "first world" these days), do most coding whilst separated from the Internet. I am hoping therefore that Gradle's caching system allows for disconnected working when using these remote repository references. (Maven sucks when not connected to the Internet, I am hoping that Gradle does not suffer the same problems.) (Interestingly, or not, Go seems to be going down the "assume Internet connection and discriminate against anyone who hasn't got it, ya boo" route, which is a bit sad.) -- Russel. ============================================================================= Dr Russel Winder t: +44 20 7585 2200 voip: sip:[email protected] 41 Buckmaster Road m: +44 7770 465 077 xmpp: [email protected] London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
signature.asc
Description: This is a digitally signed message part
