pytest-progress
pytest-progress is a plugin for py.test <http://pytest.org>
_ that allows to
print the test progress like number of tests Passed , Failed, Skipped and also
instant test failure messages.
Requirements
You will need the following prerequisites in order to use pytest-progress:
- Python 3.8, 3.9, 3.10, 3.11 and 3.12
- pytest
Installation
To install pytest-progress::
$ pip install pytest-progress
Then run your tests with::
$ py.test --show-progress
If you would like more detailed output (one test per line), then you may use the verbose option::
$ py.test --verbose
Examples
To run the pytest with progress::
$ py.test --show-progress test_progress_report.py
$ py.test --showprogress test_progress_report.py
To run tests in verbose mode::
$ py.test --show-progress --verbose test_progress_report.py
$ py.test --showprogress --verbose test_progress_report.py