parroty / excoveralls

Coverage report tool for Elixir with coveralls.io integration.
MIT License
820 stars 178 forks source link

Add diff task #282

Open xafizoff opened 2 years ago

xafizoff commented 2 years ago

I want to run coverage analysis only for lines that have been changed. A new coveralls.diff task checks coverage on lines that were added up to HEAD from git revision specified in the --from-git-rev option. If total coverage for those lines is less than minimum (--threshold option), then task exits with status 1.

Task will:

$ MIX_ENV=test mix coveralls.diff --from-git-rev master