gradle-cobertura-plugin
gradle-cobertura-plugin copied to clipboard
Support generating coverage reports for a multiproject build where tests are isolated into a single project
I'm searching for a gradle cobertura plugin that supports my scenario: I have a multiproject where several projects contains some logically related contents and a single project that provides tests for all other projects. The tests have been moved to a dedicate project cause I every project is backed by an eclipse project, and eclipse doesn't support separating tests from sources (within a single project). See http://tech.groups.yahoo.com/group/junit/message/22398
So launching gradle clean testCoberturaReport on a gradle multiproject structure like the following
. //the multi-project
|-- build.gradle
|-- prj1 //the 'real' project
| |-- build.gradle
| `-- src
| `-- main
| `-- groovy
| `-- Foo.groovy
|-- settings.gradle
`-- testprj //the test project
|-- build.gradle
`-- src
`-- test
`-- groovy
`-- FooTest.groovy //tests for Foo.groovy
I have the following problem:
- on prj1 the report shows a 0% coverage
- on testprj the coverage report is empty
I've uploaded an archive with the complete multiproject test case.
UPDATE: I've filed a similar issue to other gradle-cobertura plugins... is there any change to join your forces and provide a unified, comprehensive plugin that supports even my scenario?
- https://github.com/valkolovos/gradle_cobertura/issues/26
- https://github.com/stevesaliman/gradle-cobertura-plugin/issues/7