Skip to content
This repository has been archived by the owner on Mar 18, 2020. It is now read-only.

Support generating coverage reports for a multiproject build where tests are isolated into a single project #10

Open
davidecavestro opened this issue Feb 14, 2013 · 0 comments

Comments

@davidecavestro
Copy link

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

Screenshot-Coverage Report - Google Chrome

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?

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

No branches or pull requests

1 participant