https://github.com/cristianonicolai/jira-jacoco-example
https://github.com/cristianonicolai/jira-jacoco-example
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/cristianonicolai/jira-jacoco-example
- Owner: cristianonicolai
- License: apache-2.0
- Created: 2014-11-11T13:03:16.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2020-10-13T04:38:09.000Z (almost 5 years ago)
- Last Synced: 2025-01-28T04:18:15.095Z (9 months ago)
- Language: Java
- Size: 44.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
JIRA Plugin JaCoCO Example
==========================This project demonstrate how to integrate JaCoCo code coverage with a sample JIRA plugin.
It covers unit and integration tests.
In this example each type of tests generates a different report.
The JIRA plugin code is based on the tutorial provided by Atlassian for JIRA Event Listener. You can check the original code on the links below.## Links
- JIRA Plugin Guide - https://developer.atlassian.com/display/JIRADEV/JIRA+Plugin+Guide
- Atlassian SDK Working with Maven - https://developer.atlassian.com/display/DOCS/Working+with+Maven
- Event Listeners - https://developer.atlassian.com/display/JIRADEV/Writing+JIRA+Event+Listeners+with+the+atlassian-event+Library
- JIRA Event Listener Tutorial - https://bitbucket.org/atlassian_tutorial/jira-event-listener
- JaCoCo - http://www.eclemma.org/jacoco/## How to build
Enter the following:
$ git clone https://github.com/cristianonicolai/jira-jacoco-example.git
$ cd jira-jacoco-example
$ mvn clean install## Sample report

## Checking coverage level
When using JaCoCo you can also define a series of rules to difine quality criterias for your project.
When running it via Maven, you can make sure that no rules are violated.
In this project, I created a separated profile that runs all check. To run it, please execute:$ mvn clean install -P jacoco-check