maven-multimodule-coverage | module maven project with coverage report | Code Coverage Tools library
kandi X-RAY | maven-multimodule-coverage Summary
kandi X-RAY | maven-multimodule-coverage Summary
Multi-module maven project with coverage report aggregation
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Returns a FOOFooFOOFooMethod
- Returns a string based on the condition
- Returns a string representation of another bar method
- Returns a new BazMethod instance
maven-multimodule-coverage Key Features
maven-multimodule-coverage Examples and Code Snippets
Community Discussions
Trending Discussions on maven-multimodule-coverage
QUESTION
I have a multimodule Maven project where the coverage reports are located in another module than the covered Java classes. An import of a not empty xml coverage report (with coverage information) into Sonarqube is successful but shows a coverage of 0.
Steps to reproduce:
- Checkout following github project and build it with
mvn clean verify
. After that there exist an aggregated xml report located incoverage/target/site/jacoco-aggregate-all/jacoco.xml
. You can see coverage data in there and also in the corresponding html-Report.
- Start sonarqube (current version 8.4.1) with following command and wait a little bit.
ANSWER
Answered 2020-Jul-17 at 09:51Please install JaCoco xml report importer
plugin on sonarqube instance (you will find it under marketplace just search for jacoco
there). This plugin will pick up your code coverage and import it to sonarqube. so after installing plugin please use the same command to see result on sonarqube which is
mvn sonar:sonar -X -Dsonar.projectKey=example -Dsonar.host.url=http://localhost:9000 -Dsonar.login=admin -Dsonar.password=admin -Dsonar.coverage.jacoco.xmlReportPaths=target/site/jacoco-aggregate-all/jacoco.xml
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install maven-multimodule-coverage
You can use maven-multimodule-coverage like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the maven-multimodule-coverage component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page