Skip to content

Using gradle-scoverage on Project with Multiple Submodules #186

Open
@hariravichandran

Description

@hariravichandran

Hi,

We are trying to run gradle-scoverage on a project using multiple submodules. Let's call them modules A, B, and C. There is an overarching build.gradle file, and each module A through C has its own build.gradle file.

In each submodule we have the following in build.gradle:

scoverage {
    minimumRate = 0.7
}

dependencies {
    . . .
}
. . .

So three questions:

  1. Can you provide an example where we use scoverage {} as part of individual project submodules?
  2. Could you provide an example where we use scoverage {} as part of the parent module build.gradle? When I try to paste the scoverage{} statement there, it crashes.
  3. The coverage information e.g., percentages etc. is not appearing in our build on GitLab. How do we debug the percentages not appearing?

Any help would be appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions