-
Notifications
You must be signed in to change notification settings - Fork 24
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
Module specific report not generating report in build/report #103
Comments
@AliAzaz this is by design. it is considered good practice that module specific Gradle tasks use the module specific build/output folder for artifacts (compiled resources, class files, execution data etc.) that are generated. Is there a reason why you would want a module specific task to output data in a non-module specific root folder instead? |
Basically I have more then one app module in a project and have many library module and I'm using sonar to pull this report and show it on my sonar cloud dashboard. That is why I want to build specific app module that can also includes all library modules in it to generate a report. |
I think what you are looking for is one aggregated report for all your modules at once? In that case it may make more sense to just use If you do require separated reports per module, then you will have to tell Sonar Cloud about them individually (using a pattern potentially, since
|
Any way to create report for specific app module? Because the solution you defined above can create all modules report including multiple app modules. |
Yes, you already did this: ':yourModule:coverageReport' This is all outlined in the README.md (section 2). |
Ok let me clarify it again: |
Ah that is a clearer picture. Unfortunately a scenario like this is currently not supported, it is either coverage separate per module, or your whole project combined. To support a scenario like this would require the plugin to figure out dependencies on it's own and generate reports for each module and it's dependencies. Maybe something I can work on in the future. |
That's great. Please do work on it and update or I will try to add this and create PR. |
Currently, I am using this to tackle my issue:
and run command:
And
|
While running the plugin for specific module report:
gradle :yourModule:coverageReport
the report folder is not generating on this path
/build/reports/
, however, it is generating inyourModule/build/reports/
.The text was updated successfully, but these errors were encountered: