kennylajara/pytester-cov
Recursively check pytest coverage and fail if file and/or total coverage below threshold.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| pytest-root-dir | root directory to recursively search for .py files | no | . |
| pytest-tests-dir | directory with pytest tests. if left empty will identify test(s) dir by default | no | "" |
| cov-omit-list | list of directories and/or files to ignore | no | "" |
| requirements-file | requirements filepath for project | no | requirements.txt |
| cov-threshold-single | fail if any single file coverage is less than threshold | no | 0 |
| cov-threshold-total | fail if the total coverage is less than threshold | no | 0 |
Outputs
| name | description |
|---|---|
| output-table | pytest-cov markdown output table |
| cov-threshold-single-fail | boolean if any single file coverage less than cov-threshold-single |
| cov-threshold-total-fail | boolean if total coverage less than cov-threshold-total |