Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jjlharrison/coverage-maven-plugin

Maven plugin for calculating test coverage of new changes when compared to another Git branch.
https://github.com/jjlharrison/coverage-maven-plugin

coverage git jacoco java maven maven-plugin

Last synced: about 1 month ago
JSON representation

Maven plugin for calculating test coverage of new changes when compared to another Git branch.

Awesome Lists containing this project

README

        

# Coverage Maven Plugin

## Usage



com.jjlharrison
coverage-maven-plugin
{{VERSION}}

develop
${project.reporting.outputDirectory}/jacoco/jacoco.xml
false
${project.reporting.outputDirectory}/change-coverage/report.xml
92
92



post-site

report
check



## Goals

### Report

The `report` goal will diff the current HEAD of the Git repository with a configured branch ("develop" by default) and check the JaCoCo report to determine what line and branch coverage is for changed and new lines.

The `jacoco:report` goal must have been executed before the `coverage:report` goal is executed.

If the `compareBranch` is behind a remote tracking branch, the plugin will compare with that instead.

If the `compareBranch` is not found, but a remote branch with that name exists, the plugin will compare with that instead.

### Check

The `check` goal will read the change coverage report and will fail the build if the coverage levels fall below the requirements configured.

The `report` goal must have been executed before this goal is executed.

## JDK Support

This project aims to support JDK 1.8 and above. If any issues are found with a particular JDK version, please create a new issue or submit a pull request.