gradle_cobertura icon indicating copy to clipboard operation
gradle_cobertura copied to clipboard

Plugin makes build fail if a set of tests are disabled.

Open spina opened this issue 13 years ago • 1 comments

If one of my build files contains this line:

test.enabled = false

The the build fails if when I run 'gradle cobertura'.

If I put in these lines:

coberturaXml.enabled = false cobertura.enabled = false

Then the build works again. It seems like disabling tests should be all that I need to do. I'm using cobertura like this:

buildscript {
    // using a variable to make wiki look cleaner
    def githubBase = 'https://github.com/valkolovos/gradle_cobertura/raw/master/ivy'
    apply from: "${githubBase}/gradle_cobertura/gradle_cobertura/1.0-rc4/coberturainit.gradle"
}

along with Gradle version 1.0-milestone-6.

spina avatar Dec 21 '11 23:12 spina

This can be reproduced through the command line. Run gradle -x cobertura and watch the build fail. I just put in a pull request with a little sub-project that can illustrate this problem.

spina avatar Apr 10 '12 15:04 spina