Skip to content
This repository has been archived by the owner on Apr 14, 2022. It is now read-only.

Added Cobertura task to Gradle. #20

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Added Cobertura task to Gradle. #20

wants to merge 1 commit into from

Conversation

hekonsek
Copy link
Contributor

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant