scoverage / gradle-scoverage

A plugin to enable the use of Scoverage in a gradle Scala project
Apache License 2.0
53 stars 38 forks source link

Using gradle-scoverage on Project with Multiple Submodules #186

Open hariravichandran opened 2 years ago

hariravichandran commented 2 years ago

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.