Open tomdaniel-it opened 7 months ago
Hi, thank you for the request but comparing code coverage of SCM branches is not in scope of coverlet but is available in CI extensions or code quality assurance tools.
e.g.
This issue is stale because it has been open for 3 months with no activity.
I see this functionality was already asked about in #1148 , but since this issue was closed, I thought I'd open a Feature Request for it.
This issue was also created as reaction to performance issues. While this is also an advantage, my feature request focuses on other benefits that this feature would introduce.
Feature request: An extra option to define a commit target to compare against, so that only for the changes since this commit, coverage will be created. This would mainly be used in CI/CD pipelines.
Why: In greenfield projects, it is easy to setup the constraint of having a minimum % of coverage, otherwise the build fails and you can't merge your pull requests. But in reality, this isn't as easy. Most of the times developers are working with already existing code bases which are not covered by unit tests. The only options are:
This feature would introduce two new benefits (besides performance):
This feature request was inspired by the
since
option flag in .NET Stryker.