Skip to content

Support for "diff coverage" #886

Open
@deivid-rodriguez

Description

@deivid-rodriguez

The only codeclimate feature that I think it's not provided by default in simplecov is "diff coverage", namely, the ability to track the coverage of a set of source control changes, and to enforce restrictions on it.

For example, check that a given patch cannot have less that 50% coverage, which would mean that at least half of the lines being added or changed would need to be hit by tests.

Not sure if adding support for this inside simplecov could couple it too much with source control systems. Maybe a first step that does not require any knowledge about git would be to, given a coverage report, allow to query information about the partial coverage of a given set of { file_name, line_number } duples. I think that would simplify implementing diff coverage inside a plugin or something like that.

Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions