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

Gradle jacoco coverage report with more than one submodule(s)? #16

Closed
k3b opened this issue Aug 1, 2016 · 1 comment
Closed

Gradle jacoco coverage report with more than one submodule(s)? #16

k3b opened this issue Aug 1, 2016 · 1 comment

Comments

@k3b
Copy link

k3b commented Aug 1, 2016

Currently JacocoEverywhere merges jacoco reports from different tests in the same submodule. i.e.

  • myProject/src/main
  • myProject/src/test
  • myProject/src/androidtest

Is it possible to have the report over the tests of different sub-moduls as described in

http://stackoverflow.com/questions/38675853/gradle-jacoco-coverage-report-with-more-than-one-submodules

  • myProject1/src/main
  • myProject1/src/test
  • myProject2/src/main
  • myProject2/src/test

I alredy tried as decribed in https://discuss.gradle.org/t/merge-jacoco-coverage-reports-for-multiproject-setups/12100/6

task jacocoMerge(type: JacocoMerge) {
   subprojects.each { subproject ->
      executionData subproject.tasks.withType(Test)
   } 
}

but got the error message (using gradle-2.14)

* What went wrong:
Some problems were found with the configuration of task ':jacocoMerge'.
> No value has been specified for property 'jacocoClasspath'.
> No value has been specified for property 'executionData'.
> No value has been specified for property 'destinationFile'.
@paveldudka
Copy link
Owner

Seems like you found your answer already according to http://stackoverflow.com/questions/38675853/gradle-jacoco-coverage-report-with-more-than-one-submodules

@k3b k3b closed this as completed Sep 26, 2017
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

2 participants