jenkinsci / github-pr-coverage-status-plugin

Nice test coverage icon for your pull requests just from Jenkins

Home Page:https://plugins.jenkins.io/github-pr-coverage-status/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Implement support for custom location of jacoco-report file (Android support)

Ch3D opened this issue · comments

I have an android app for which I would like to have code coverage reports, unfortunately this doesn't work becuase jacoco-android-plugin generates report with different filename for every flavor it's running against, i.e. {project}\build\reports\jacoco\jacocoTestDevDebugUnitTestReport\jacocoTestDevDebugUnitTestReport.xml.

As far I see, current implementation is only looking for **/jacoco.xml and **/jacocoTestReport.xml


cov.addAll(getFloats(ws, "**/jacocoTestReport.xml", new JacocoParser())); //default for gradle

As the result I see 0% (0.0%) vs master 0% in my PRs.

We need a way to specify custom location of jacoco-report files