Skip to content

Class coverage is below minimum. Improve to at least 0% Message keep showing on PRs. #48

@clementcasa

Description

@clementcasa

Hello, we have implemented Danger-jacoco on our project but we have an issue with the plugin

The message Class coverage is below minimum. Improve to at least 0% keep showing on our PRs while we specify that the minimum coverage of classes is 0%.
Here is the full output :
Screenshot 2021-06-15 at 11 49 25

Plugin Usage

Here is the configuration of jacoco in our Dangerfile :

# Jacoco
jacoco.minimum_project_coverage_percentage = 70
jacoco.minimum_package_coverage_map = {
'com/citygoo/app/data/fixtures/' => 0,
'com/citygoo/app/data/models/domainMappingProtocols/' => 80,
'com/citygoo/app/data/models/entities/' => 0,
'com/citygoo/app/data/modules/exceptions/' => 80,
'com/citygoo/app/data/repositories/' => 80,
'com/citygoo/app/data/utils/' => 0,
'com/citygoo/app/data/vendors/' => 80,
'com/citygoo/app/domain/' => 95,
#Presenter
'com/citygoo/app/presenter/models/' => 0,
'com/citygoo/app/presenter/modules/' => 70,
'com/citygoo/app/presenter/protocols/' => 70,
'com/citygoo/app/presenter/utils/' => 0
}
jacoco.minimum_class_coverage_percentage = 0
jacoco.report(
  "app/build/reports/jacoco/jacocoDebugTestReport/jacocoDebugTestReport.xml",
  "http://www.google.com",
  fail_no_coverage_data_found: false
)

Version Used

danger-jacoco v0.1.4
jacoco Gradle Plugin 0.8.7
danger 5.13.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions