Skip to main content

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-open flag

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 2 or 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 use addopts = -n 2 in 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)

Source distribution for pytest-liveview 0.1.0
File Size Uploaded
pytest_liveview-0.1.0.tar.gz 14.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pytest-liveview 0.1.0
File Interpreter ABI Platform
pytest_liveview-0.1.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page