I am unable to get code coverage report from SonarQube remaining issues has been passed except code coverage, so i added jacoco plugin in projcet pom.xml file but while running the maven build pipeline by added code coverage tool jacoco and enabled code analysis tool it is troughing error as Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.8:run (default) on project VstsReport: An Ant BuildException has occured: Error while creating report
I suggest focusing on having a JaCoCo report produced successfully, and then worry about importing it into SonarQube. SonarQube just reads the report its given, it isn’t involved in producing it.
it’s resolved, but code coverage report showing 9.1%, we are working with multi module java project i need to expose only module-2 on overall review code coverage instead of all modules. i am attaching details please find it below.