bmuschko / gradle-clover-plugin

Gradle plugin for generating a code coverage report using Clover
Apache License 2.0
74 stars 49 forks source link

How to apply customized source code path for code coverage? #152

Closed yeskamaldev closed 3 years ago

yeskamaldev commented 3 years ago

I have my project which is 100% in groovy having dependency to use a customized path instead of default source code directory i.e. src\com\appsource and unit test code (written using SPOCK Framework) in test\unit_test\spockframework

Could any please tell me what are the changes I would require in my build.gradle file to successfully execute code coverage? Unable to do code coverage using IDEA plugin as well.

Alex-Vol commented 3 years ago

IDEA plugin is not related to the Clover plugin so I cannot answer how that works.

Regarding the Clover plugin, if your code is configured with the usual source set main and test we pick up automatically what we need from there. Are you using custom source sets other than main or test in your build.gradle?

Alex-Vol commented 3 years ago

No response, closing.

Examples of the required configuration exist in the plugin documents. See README.md for details.