Pytest-Priority
为用例添加优先级标记,并支持按优先级筛选用例执行
安装方法
pip install pytest-priority
使用方法
- 标记优先级
# test_demo.py
import pytest
@pytest.mark.priority('p0')
def test_a():
pass
@pytest.mark.priority('p1')
def test_b():
pass
@pytest.mark.priority('p2')
def test_c():
pass
- 筛选测试用例,例如运行优先级为p0和p1的用例
pytest test_demo.py --priority=p0 --priority=p1
Metadata
Release files for pytest-priority 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pytest_priority-0.1.1.tar.gz | 2.1 kB | Without provenance | Details for pytest_priority-0.1.1.tar.gz |
Release files / pytest_priority-0.1.1.tar.gz
| Download URL | pytest_priority-0.1.1.tar.gz |
|---|---|
| Size | 2.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
86fa9c95a26b90f1f086529a9f10ca2f3d7185f3c9c17897b53719f2945a59c9
|
|
BLAKE2b-256 checksum How to use checksums |
fa444d37033f685809b9c5982ab55d85992aa3de0d0c444b84bfee0724a7ff88
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.6
|
Security for pytest-priority 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.