analogrithems / coverage-rich

A rich table report for coverage.py

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

coverage-rich

coverage-rich

PyPI - Version PyPI - Python Version


Installation

pip install coverage-rich

Usage

coverage run -m pytest
coverage-rich report

configuration

coverage-rich will send a failure code if there is insufficient total coverage, this is configurable by setting the fail-under value.

pyproject.toml

[tool.coverage_rich]
fail-under=0 # default 80

.coverage_rich, coverage_rich.ini

[coverage_rich]
fail-under = 1

setup.cfg

[tool.coverage_rich]
fail-under = 22

Examples

coverage-rich (left) compared to coverage report -m (right)



License

coverage-rich is distributed under the terms of the MIT license.

About

A rich table report for coverage.py

License:MIT License


Languages

Language:Python 98.8%Language:CSS 1.2%