Skip to content

Any plan to support incremental compilation? #492

Open
@crakjie

Description

@crakjie

Describe the bug

Currently every time a compilation is done the datadir is cleaned. Then the scoverage.coverage is regenerated only with the compiled satements. So when the report is then generated it contains only the coverage for few statements.

It happens after incremental compilation, it happen when pulling sbt remote cache, it also happen when source files are regenerated for every build (ie file generated by https://github.com/sbt/sbt-buildinfo).

I'm not saying that having the coverage for only what was recompiled is useless. A merge request could show the percentage of coverage of it's added lines.
But for project using generated source it's make it impossible to extract coverage as that compilation of generated file are done sperately.

Expected behavior

Re-calculate the scoverage.coverage for the whole source code instead, or at least having the option to do so.
I think the already compiled code would not have to be re-instrumented because it was already done in the previous compilations.

What build tool are you using?

sbt

Version of scoverage

1.4.11

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