I came to know that we can generate aggregate-report that reports cross module code coverage for the maven plugin.
Please look into the below explanation for details about my question.
I have 2 Modules A and B.
If module A has Spring tests written which covers module A and 50% classes of module B.
Module B has unit tests which cover other 50% classes of module B.
Can we generate aggregate report for both modules A and B which shows coverage for module B as 100%?
Or does the latest version support in a way that the coverage is brought up for module A and 50% of module B only?
If Yes, please help with the configuration for the same.
Please let me know for any additional information.
Thank you.
Thanks a lot for the quick reply. From the information you have provided I could create a sample multi-module project and was successfully able to replicate the same thing I was asking in the above request. But that was all using unit tests only.
Majority of the test cases we use are Spring tests (meaning they use @ContextConfiguration annotation) written for Controllers using testNG framework. When I run the build I see that this configuration is running only unit tests with @Test annotation. Spring tests which are triggered from testNG suite.xml file are not running. I have many such xml files which trigger the testControllers and test end-to-end functionality.
Please help me with the same on how to run these integration spring tests with jacoco.
Thanks
Yashwanth
One request from the change log I see in 0.7.7.
"New parameters title and footer for Maven reporting goals allow customization of generated reports."
Does the above feature imply we can customise the report to check the covered lines instead of covered instructions?
Thanks.