SpringSource/spring-scala — pull request #20 by hekonsek (2013-05-11 19:10:41+00:00)
Title: Added Cobertura task to Gradle.

Hi,

I was thinking about two stack overflow bugs I've fixed lately. And I came to conclusion that we could had easily spotted them earlier with test coverage checks. From my experience Cobertura works pretty good as Scala test coverage tool.

Unfortunately in Gradle you cannot use Cobertura out of the box (as in Maven), so I created a dedicated Gradle task to generate Cubertura report.

Now, if you want to generate test coverage report, you just execute `gradle cobertura`. After the execution of the latter command, you will see brand new coverage report in HTML format located under `spring-scala/build/reports/cobertura/index.html`.

Keep in mind that I added Maven Central repository to the `build.gradle` because the Cobertura task needs to resolve `net.sourceforge.cobertura:cobertura:1.9.4.1` dependency. If you add mentioned dependency to the Spring Source repository, you can safely remove Maven Central from `build.gradle`.

Armed with Cobertura I could improve our test coverage with some further contributions.

Best regards.