xd009642 / tarpaulin

A code coverage tool for Rust projects
https://crates.io/crates/cargo-tarpaulin
Apache License 2.0
2.5k stars 180 forks source link

Return an error if the coverage is decreasing #1411

Closed nikgul closed 3 months ago

nikgul commented 11 months ago

Describe the feature It would be nice if tarpaulin would return an error if the coverage percentage is decreasing, kinda like you set a threshold with --fail-under with a set percentage.

xd009642 commented 3 months ago

Closed as wontfix for reason mentioned in PR (replicated here)

I've thought about this more and I've decided it's not something I'm looking to merge into tarpaulin, there's some complexity in the behaviour RE times when fail-decreasing doesn't fail if coverage decrease and also the vast majority of users are running in CI and then this type of functionality is provided by other services like coveralls etc.