Skip to main content

A rich terminal report for coveragepy.

Project description

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.

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_rich-0.1.0.dev1.tar.gz (14.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

coverage_rich-0.1.0.dev1-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file coverage_rich-0.1.0.dev1.tar.gz.

File metadata

  • Download URL: coverage_rich-0.1.0.dev1.tar.gz
  • Upload date:
  • Size: 14.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.23.3

File hashes

Hashes for coverage_rich-0.1.0.dev1.tar.gz
Algorithm Hash digest
SHA256 3bad55f2fc7b0b6ecc007198040e59ab02e4a37017a6468e4f9e81939d349c02
MD5 8cb1f888a7aa58106ba3848ac56e3778
BLAKE2b-256 bf96ab3d31947fccabbf58df03f837d6f56413d5ac229d6f84d84f4eaa6c5e58

See more details on using hashes here.

File details

Details for the file coverage_rich-0.1.0.dev1-py3-none-any.whl.

File metadata

File hashes

Hashes for coverage_rich-0.1.0.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 11f563618a4d736ebee1008966c12dd82aa560d4b0f369976cad4f26a96960a3
MD5 142cb9c1683c59bdb517e6d8f2989ed3
BLAKE2b-256 ce02d124a14f395220106e483eb99aa0ef5e23b1c18455ed886416acee6b054e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page