I have a Utility class, which consists of certain Strings and a private constructor. Using Reflections I have tested that constructor as well and these strings are used in turn in other classes for which tests are there. Jacoco shows full code coverage. When I run it in Sonar, the coverage shows these constructors and Strings are not covered. Why is it so? Sonar picks up the Jacoco reports for showing up coverage( If I am right). Then why is this inconsistency. Thanks in Advance
Aucun commentaire:
Enregistrer un commentaire