0

I have jacoco running for my build and I noticed if there's 2 test classes testing the same main class, coverage from one of the test classes is missing. For example, I have a class MyApp. Now I have MyAppTest and MyAppLatestTest. In this case only coverage from MyAppTest is considered. Has anyone faced this problem? Is there a potential solution to this?

Ganesh
  • 109
  • 2
  • 9
  • I have 2 classes with the same name in 2 different module, and jhave written test classes for each of them in their respective module. BUt the second class is not being considered in the report. – Vikas Pandey Jun 07 '23 at 09:21

1 Answers1

0

This seems to be a shortcoming of maven surefire rather than jacoco. https://stackoverflow.com/a/6178629/3402233

Ganesh
  • 109
  • 2
  • 9