Skip to content

tremes/plugin-jacoco

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

This plugin provides installing, running and reporting code coverage with JaCoCo (http://www.eclemma.org/jacoco/)

At first you need to setup basic JaCoCo profile with:

jacoco setup

Then you can run tests to prepare code coverage agent:

jacoco run-tests --package com.example.model

Package parameter is required and there you have to specify classes for code coverage instrumentation. Command "run-tests" always runs all available tests.
You can also run Arquillian tests and in this case you are asked for container managed profile (JaCoCo with Arquillian currently works properly just for managed profiles).
Finally you can create report for above specified classes by:

jacoco create-report

Html code coverage report is available in ${project.build.directory}/site/jacoco/index.html


TODO
- add command to view generated report

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages