GithubHelp home page GithubHelp logo

turturel / sonar-clover Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sfeir-open-source/sonar-clover

0.0 0.0 0.0 321 KB

It provides the ability to feed SonarQube with code coverage data coming from Atlassian Clover

License: Apache License 2.0

Java 91.56% Groovy 2.05% Makefile 6.13% Dockerfile 0.25%

sonar-clover's Introduction

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 for the parsing of the clover report to make it usable in sonarqube. Coverage report generation is handled 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 allow 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.

sonar-clover's People

Contributors

tony-proum avatar benzonico avatar ehartmann avatar panine avatar christophelevis avatar dgageot avatar ganncamp avatar julienlancelot avatar mpaladin avatar manekinekko avatar andersaaberg avatar godin avatar tomverin avatar turturel avatar agathert avatar dbolkensteyn avatar ganntest avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.