jacoco-coverage

Tool for extracting value of instructions coverage from jacoco report. From the artifact is developed plugin. At github is tagged as 0.2.1-pre.maven.plugin.

License

License

Categories

Categories

JaCoCo Application Testing & Monitoring Code Coverage
GroupId

GroupId

com.yopeso
ArtifactId

ArtifactId

jacoco-coverage
Last Version

Last Version

0.2.1
Release Date

Release Date

Type

Type

jar
Description

Description

jacoco-coverage
Tool for extracting value of instructions coverage from jacoco report. From the artifact is developed plugin. At github is tagged as 0.2.1-pre.maven.plugin.
Project URL

Project URL

https://github.com/yopeso/jacoco-coverage/tree/0.2.1-pre.maven.plugin
Source Code Management

Source Code Management

https://github.com/yopeso/jacoco-coverage/tree/0.2.1-pre.maven.plugin

Download jacoco-coverage

How to add to project

<!-- https://jarcasting.com/artifacts/com.yopeso/jacoco-coverage/ -->
<dependency>
    <groupId>com.yopeso</groupId>
    <artifactId>jacoco-coverage</artifactId>
    <version>0.2.1</version>
</dependency>
// https://jarcasting.com/artifacts/com.yopeso/jacoco-coverage/
implementation 'com.yopeso:jacoco-coverage:0.2.1'
// https://jarcasting.com/artifacts/com.yopeso/jacoco-coverage/
implementation ("com.yopeso:jacoco-coverage:0.2.1")
'com.yopeso:jacoco-coverage:jar:0.2.1'
<dependency org="com.yopeso" name="jacoco-coverage" rev="0.2.1">
  <artifact name="jacoco-coverage" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.yopeso', module='jacoco-coverage', version='0.2.1')
)
libraryDependencies += "com.yopeso" % "jacoco-coverage" % "0.2.1"
[com.yopeso/jacoco-coverage "0.2.1"]

Dependencies

test (1)

Group / Artifact Type Version
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

jacoco-coverage maven plugin

Maven plugin that extracts the total instructions coverage from jacoco xml report and put the int result into file. Mojo class is used for define the plugin goal.

The library is hosted on Maven Central:

Maven

<dependency>
    <groupId>com.yopeso</groupId>
    <artifactId>jacococoverage-maven-plugin</artifactId>
    <version>PLUGIN_VERSION</version>
</dependency>

Gradle

compile 'com.yopeso:jacococoverage-maven-plugin:PLUGIN_VERSION'

How to use it:

Cmd

> mvn com.yopeso:jacococoverage-maven-plugin:PLUGIN_VERSION:coverage -Dcoverage.report=target/site/jacoco/jacoco.xml -Dcoverage.result=target/site/jacoco/coverage_result.txt

coverage: the goal of the plugin defined in the Mojo class
Dcoverage.report: path of the jacoco xml report
Dcoverage.result: path of the file where will be written the jacoco coverage int number

Available plugin versions you can find here

com.yopeso

YOPESO

YOPESO GmbH

Versions

Version
0.2.1
0.2.0
0.1.0-SNAPHOT
0.1.0