Sonar Clover Plugin

Get code coverage with <a href="http://www.atlassian.com/software/clover/">Atlassian Clover</a>.

Лицензия

Лицензия

Категории

Категории

Clover Тестирование приложения и мониторинг Code Coverage
Группа

Группа

org.codehaus.sonar-plugins
Идентификатор

Идентификатор

sonar-clover-plugin
Последняя версия

Последняя версия

3.0
Дата

Дата

Тип

Тип

sonar-plugin
Описание

Описание

Sonar Clover Plugin
Get code coverage with <a href="http://www.atlassian.com/software/clover/">Atlassian Clover</a>.
Организация-разработчик

Организация-разработчик

SonarSource
Система контроля версий

Система контроля версий

https://github.com/SonarCommunity/sonar-clover

Скачать sonar-clover-plugin

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
org.mockito : mockito-all jar 1.9.5

provided (2)

Идентификатор библиотеки Тип Версия
org.codehaus.sonar : sonar-plugin-api jar 4.2
org.apache.maven : maven-project jar 2.0.7

test (2)

Идентификатор библиотеки Тип Версия
org.codehaus.sonar : sonar-testing-harness jar 4.2
org.easytesting : fest-assert jar 1.4

Модули Проекта

Данный проект не имеет модулей.

Sonar Clover

Build Status

Description / Features

This project provides the ability to feed a SonarQube server with some code coverage data coming from Atlassian Clover Project or it's new open source version: OpenClover. This plugin is responsible of the parsing of the clover report to make it usable in sonarqube. Coverage report generation is handle by this project : https://github.com/openclover/clover

Usage

To display code coverage data in sonarqube you can install this plugin using sonarqube marketplace marketplace Searching clover in the search bar should allows you to find this plugin

After installing the plugin, your sonarqube server should be able to ingest clover coverage report generated by one of the plugin listed here https://github.com/openclover/clover (e.g: maven, gradle)

Prior to be able to display coverage data from the SonarQube Server, execute your unit tests and generate the Clover report e.g using maven. then you can use the sonar plugin to upload the report to your sonarqube instance and see the result in sonarqube

Those 2 steps can be resume by this command:

mvn clean clover:setup test clover:aggregate clover:clover sonar:sonar -Dsonar.sources=src -Dsonar.host.url=http://sonar-instance:9000 

you can find a full example in this folder https://github.com/sfeir-open-source/sonar-clover/tree/master/its/integration

Testing

To test the compatibility of this plugin with a specific version of sonarqube locally: You should be able to test this integration using docker.

First start a fresh instance of sonarqube in the desired version

VERSION=<sonarqube_docker_tag> make run-integration-platform

This command allows to create an integration platform locally using a specific sonarqube_docker_tag This command stay on foreground, just wait for sonarqube server to be up and running (you can check that the server is running going to http://localhost:9000)

Step 2 : in another terminal run

make run-integration-test

this second command will build an example project and upload the clover coverage report to the sonarqube instance.

Версии библиотеки

Версия
3.0
2.9
2.8
2.7