Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add diff task #282

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Add diff task #282

wants to merge 3 commits into from

Conversation

xafizoff
Copy link

@xafizoff xafizoff commented May 9, 2022

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:

  • Print total coverage information for changed lines.
  • Print total coverage information for changed lines for each file.
  • Print changed lines and highlight covered and missed lines.
$ MIX_ENV=test mix coveralls.diff --from-git-rev master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant