Skip to content

Unable to run scoverage goal(s) in multi-module project with inter-module dependencies #51

Closed
@nvrs

Description

@nvrs

Hi,

I am trying to execute a scoverage goal directly, e.g. mvn scoverate:integration-report (scoverage is not attached to a specific phase of the lifecycle), but it's impossible to do so on a reactor with modules that have cross-dependencies. The reason seems to be that in the forked process, the reactor dependencies appear to be absent.

On the other hand, if scoverage is attached to maven's lifecycle, tests are always run twice, at least with scalatest, which is very time consuming for us. A possible workaround for us, would be to execute maven clean install -DskipTests=true on the aggregator pom first and then mvn scoverate:integration-report on it. However, this is dangerous to be performed on any environment in general as SNAPSHOT artifacts will end up in maven's cache which could lead to difficult to track bugs etc.

Since i understand that the reactor issue is probably not easy to solve, may i suggest ignoring the flag -DskipTests=true so one could use scoverage attached to the maven lifecycle but without running the tests twice?

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