coverage-rich-0.2.0.dev0
توضیحات
A rich terminal report for coveragepy.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | coverage-rich-0.2.0.dev0 |
| نام | coverage-rich |
| نسخه کتابخانه | 0.2.0.dev0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | "Waylon S. Walker" <waylon@waylonwalker.com> |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/coverage-rich/ |
| مجوز | - |
<img src="https://user-images.githubusercontent.com/22648375/218338845-4e0ff4e7-fb04-4d13-9b83-58d1b23d2a87.png" alt="coverage-rich" width="250" align=right>
# coverage-rich
[](https://pypi.org/project/coverage-rich)
[](https://pypi.org/project/coverage-rich)
-----
## Installation
```console
pip install coverage-rich
```
## Usage
``` bash
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**
``` toml
[tool.coverage_rich]
fail-under=0 # default 80
```
**.coverage_rich**, **coverage_rich.ini**
``` ini
[coverage_rich]
fail-under = 1
```
**setup.cfg**
``` cfg
[tool.coverage_rich]
fail-under = 22
```
## Examples
`coverage-rich` (left) compared to `coverage report -m` (right)
<img src='https://user-images.githubusercontent.com/22648375/218324200-d6b8078b-8f24-4163-9c02-8f6d695d4d4a.png' align='left' width='45%'>
<img src='https://user-images.githubusercontent.com/22648375/218324226-ece0b3d6-e1a9-4644-b8d1-d3adf4568cf0.png' align='right' width='45%'>
<br clear="both"/>
<img src='https://user-images.githubusercontent.com/22648375/218325189-daf0381b-8ddc-482e-8bb4-7642cade9a52.png' align='left' width='45%'>
<img src='https://user-images.githubusercontent.com/22648375/218325218-3ba5c899-f2d8-4b2d-9cb5-93fabe7511cd.png' align='right' width='45%'>
<br clear="both"/>
## License
`coverage-rich` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.
نیازمندی
| مقدار | نام |
|---|---|
| - | anyconfig |
| - | coverage |
| - | rich |
| - | textual |
| - | typer |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7 | Python |
نحوه نصب
نصب پکیج whl coverage-rich-0.2.0.dev0:
pip install coverage-rich-0.2.0.dev0.whl
نصب پکیج tar.gz coverage-rich-0.2.0.dev0:
pip install coverage-rich-0.2.0.dev0.tar.gz