Show/check coverage only for changed files (between any git branches)
Project description
Coverage-diff
Show / check coverage only for changed files
Example
Show coverage for all changed files (except deleted & renamed) between current branch and master with numbers of missing lines.
coverage-diff HEAD master --show-missing
Options
usage: main.py [-h] [--diff-filter DIFFS] [--include-regexp REGEXP]
[--full-branches BRANCH] [--show-missing] [--show-missing-full]
[branch1] [branch2]
Show coverage only for changed files
positional arguments:
branch1 first branch for git diff (default: HEAD)
branch2 second branch for git diff (default: origin/master)
optional arguments:
-h, --help show this help message and exit
--diff-filter DIFFS diff types for include files for coverage (more info
at git diff's --diff-filter option) (default: dr)
--include-regexp REGEXP
filter changed files by regexp (default: \.py$)
--full-branches BRANCH
show full coverage for specified branches (delimited
by comma) (default: master)
--show-missing, -m show missed lines for changed files (default: False)
--show-missing-full, -mf
show missed lines for --full-branches (default: False)
--fail-under PERCENT, -f PERCENT
override minimum coverage percent (0 - disabled)
(default: None)
--current-branch BRANCH, -c BRANCH
current branch name from CI (used for compare with
--full-branches); if missed - will be used branch1
(default: None)
--fork-point, -fp compare branch1 with fork point from branch2 (instead
of last commit at branch2) (default: False)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
coverage-diff-0.0.7.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for coverage_diff-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3fa37ba8d1db448b66b143c282d086d489e70c9168b50de8f645cfaadcf5e316 |
|
MD5 | 66b2984a100050acfe778464a87b887b |
|
BLAKE2b-256 | f0aa147f60e0ceb147c7e0401e20403bfddef988387df4ce9d10b4add0dec26f |