Adakar / cocoemma-plugin

Coco EMMA Plugin for Jenkins

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Coco Emma plugin

This plugin allows you to capture EMMA-XML reports generated by Coco and display code coverage statistics. This plugin is not limited to Coco but supports any report in EMMA format.

It displays the coverage statistics for several metrics (function, line, statement block, decision, condition, MC/DC and MCC) at for the source files, the classes and the functions of the covered code.

For each metric, it is possible to define a target threshold and the coverage statistics can be graphically followed through a time graph.

Usage

General configuration

The plugin provides the post-build Record Coco Emma Coverage Report action. The action allows configuring paths to the EMMA-xml report files.
The path is relative to the workspace root of the Jenkins job.

Once the path is configured and points to the generated EMMA XML file, a user can define health report thresholds.

Coco configuration

As first step, it is necessary to add a post-build rule to create an EMMA report from the .csmes file. For this, cmreport can be used as followings:

$ cmreport -m testsuite.csmes --emma=testsuite.xml

The file testsuite.xml can then be used as input for the post-build Record Coco Emma Coverage Report.

About

Coco EMMA Plugin for Jenkins

License:MIT License


Languages

Language:Java 99.1%Language:CSS 0.9%