Skip to content

SONARGROOV-5 Added support of JaCoCo #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed

SONARGROOV-5 Added support of JaCoCo #4

wants to merge 3 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Mar 3, 2015

Added support of JaCoCo.

  • Code coverage reports are now imported into SQ, as long as .exec files are provided.
  • New properties has been added to drive JaCoCo report analysis :
    • sonar.groovy.jacoco.reportPath: Provides the location of the JaCoCo unit test report. Default value being target/jacoco.exec
    • sonar.groovy.jacoco.itReportPath, Provides the location of the JaCoCo integration test report. Default value being target/jacoco-it.exec
    • sonar.groovy.jacoco.reportMissing.force.zero, Forces coverage metrics to zero if reports are missing. Default value being false

@ghost ghost assigned benzonico Mar 3, 2015
public final void readExecutionData(File jacocoExecutionData, SensorContext context) throws IOException {
ExecutionDataVisitor executionDataVisitor = new ExecutionDataVisitor();

if (jacocoExecutionData == null || !jacocoExecutionData.exists() || !jacocoExecutionData.isFile()) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isFile() also checks for existence.

@benzonico benzonico assigned ghost and unassigned benzonico Mar 3, 2015
@ghost ghost assigned benzonico and unassigned ghost Mar 4, 2015
@benzonico benzonico assigned ghost and unassigned benzonico Mar 4, 2015
@ghost ghost assigned benzonico and unassigned ghost Mar 4, 2015
@benzonico benzonico assigned ghost and unassigned benzonico Mar 4, 2015
@benzonico
Copy link
Contributor

LGTM!

@benzonico benzonico closed this Mar 4, 2015
@iNikem
Copy link

iNikem commented Mar 9, 2015

Yey! Thank you for your great work! 👍

@ghost ghost deleted the SONARGROOV-5_groovy_support branch August 4, 2015 08:21
pascalporta444 pushed a commit to COMINTO/sonar-groovy that referenced this pull request Sep 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants