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

Adding an integration test source set #13

Open
bmuschko opened this issue Mar 21, 2013 · 0 comments
Open

Adding an integration test source set #13

bmuschko opened this issue Mar 21, 2013 · 0 comments

Comments

@bmuschko
Copy link

I was trying to add another test source set to be included in code coverage. After having a brief look at the plugin code, it looked as if you can added through the extension method addCoverage:

task integrationTest(type: Test) {
    ...
}

cobertura {
    addCoverage(integrationTest, sourceSets.main)
}

However, when executing the task, I run into an error:

:integrationTestCoberturaReport FAILED

FAILURE: Build failed with an exception.

* What went wrong:
A problem was found with the configuration of task ':integrationTestCoberturaReport'.
> File '/Users/ben/testproject/build/cobertura/main/cobertura-test.ser' specified for property 'serFile' does not exist.

Is there a way of doing this? Maybe it's just not documented. Sorry, I didn't have a deep look at the task code yet.

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