pytest-liveview
A pytest plugin that shows a real-time test dashboard in a local web server. Watch your tests run live as they execute.
Features
- Real-time updates via Server-Sent Events
- Summary counts: running, passed, failed, skipped
- Expandable test suites with per-suite counts
- Expandable tests with captured output (stdout, stderr, tracebacks)
- Text filter by test/suite name (flexible, space-separated)
- Status filter: all, running, passed, failed, skipped, pending
- Configurable port (default 8085, tries next if busy)
- Optional browser launch via
--liveview-openflag
Installation
pip install pytest-liveview
Usage
Run pytest with the --liveview flag:
pytest --liveview
The dashboard URL is printed to stderr and shown in the pytest header, e.g.:
liveview: http://127.0.0.1:8085
To open the browser automatically:
pytest --liveview --liveview-open
Options
| Option | Description |
|---|---|
--liveview |
Enable the liveview dashboard |
--liveview-port PORT |
Use a specific port (default: 8085) |
--liveview-open |
Open browser automatically |
Troubleshooting
- No output in expanded tests: Don't use
-s(which disables capture). Output is captured by default. - Dashboard not updating / stats stuck on "running": This happens with pytest-xdist (
-n 2or parallel mode). Workers run in separate processes, so updates never reach the dashboard. The plugin auto-disables parallel execution when liveview is enabled. If you useaddopts = -n 2in config, run without it:pytest --liveview(the plugin overrides it).
License
MIT
Metadata
Release files for pytest-liveview 0.1.0
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_liveview-0.1.0.tar.gz | 14.6 kB | Without provenance | Details for pytest_liveview-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pytest_liveview-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for pytest_liveview-0.1.0-py3-none-any.whl |
Total release size: 27.5 kB
Release files / pytest_liveview-0.1.0.tar.gz
| Download URL | pytest_liveview-0.1.0.tar.gz |
|---|---|
| Size | 14.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
37e7f8418da8bd5dea899a3d54c5b9aa5db1f7852d2c93ba42a030c44e84f578
|
|
BLAKE2b-256 checksum How to use checksums |
4e70509d47cac85a101900e385fb8c63526215808c2eb18fd6a9d64f389a15cd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.5
|
Release files / pytest_liveview-0.1.0-py3-none-any.whl
| Download URL | pytest_liveview-0.1.0-py3-none-any.whl |
|---|---|
| Size | 13.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
30b4f68928446ca8c842e0cd541244eb2c74a178e8b57b9d768910704b19c166
|
|
BLAKE2b-256 checksum How to use checksums |
922590a95077cc176da1830df308d193ba8937a065f50415caac2a68970bd48c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.5
|
Security for pytest-liveview 0.1.0
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.