pytest
Run Python tests. More information: https://docs.pytest.org/en/latest/how-to/usage.html.
- Run tests from specific files:
pytest
- Run tests with names matching a specific [k]eyword expression:
pytest -k
- Exit as soon as a test fails or encounters an error:
pytest
- Run tests matching or excluding markers:
pytest -m
- Run until a test failure, continuing from the last failing test:
pytest
- Run tests without capturing output:
pytest
- Run tests with increased verbosity, displaying individual test names:
pytest
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
