Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task reportJacoco run on its own doesn't seem to use the config #11

Open
Barryrowe opened this issue Oct 5, 2018 · 0 comments
Open

Comments

@Barryrowe
Copy link

When running the reportJacoco task directly, it doesn't seem to pick up the configuration for the report file if it has been modified.

Config:

consoleReporter {
    jacoco {
        autoconfigureCoverageConfig false
        coverageTaskName "jacocoVariantDevReport"
        reportFile project.file("${buildDir}/reports/jacoco/jacocoVariantDevReport/jacocoVariantDevReport.xml")
        thresholdWarning 50
        colorEnabled true
    }
}

If I run the configured coverage task name, the console report is correct:
screen shot 2018-10-05 at 10 32 27 am

If I then immediately run reportJacoco I get 0.0%:
screen shot 2018-10-05 at 11 13 28 am

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

No branches or pull requests

1 participant