kt3k / coveralls-gradle-plugin

👨‍🔧 gradle plugin for coveralls
https://plugins.gradle.org/plugin/com.github.kt3k.coveralls
MIT License
253 stars 54 forks source link

Plugin assumes report XML in wrong location #37

Closed knub closed 9 years ago

knub commented 9 years ago

Hi,

first of all, thank you for the nice plugin :).

I am using jacoco, but have some problems with the report xml. Executing

./gradlew jacocoTestReport coveralls

ends with:

No report file available: [app/build/reports/cobertura/coverage.xml, /home/travis/build/knub/bookly/app/build/reports/jacoco/test/jacocoTestReport.xml]

For some reason, my jacocoTestReport.xml is in

app/build/reports/jacoco/jacocoTestReport/jacocoTestReport.xml

Is there some way to configure the path to the report XML?

knub commented 9 years ago

Alright, you can configure this via

coveralls {
    jacocoReportPath 'build/reports/jacoco/jacocoTestReport/jacocoTestReport.xml'
}

Maybe add this to the README ;-).

kt3k commented 9 years ago

You are right, we should have documented it in README (or maybe in the error message)

Thanks for the feedback!

ylogx commented 9 years ago

I also had the same problem. +1 for documentation (in README or even better if in the Error Message) :)