I have 3 Groovy source sets in the same project:
main
-
test
(for thetest
task) -
integrationTest
(for theintegrationTest
task created with the testsets plugin
For each task I got a CodeNarc report task as expected (codenarcMain
, codenarcTest
, codenarcIntegrationTest
).
However, they create HTML reports separately. This is not so usable for me, because I have to open whichever report contains errors. What I would like to have is a task that combines the reports for each source sets. Do you see a possibility for that?
For JaCoCo, I saw a documented way:
https://docs.gradle.org/6.4-rc-1/samples/sample_jvm_multi_project_with_code_coverage.html
Although lately that changed into something I don’t fully understand yet (but I’m going to learn about it):
https://docs.gradle.org/6.7/samples/sample_jvm_multi_project_with_code_coverage.html
If it helps more, I have an actual an example project, which is my hobby/study project, where the problem was experienced.