A Pytest plugin to generate realtime summary stats, and display them in-console using a text-based dashboard.
Project description
pytest-tally
A Pytest plugin that displays test run progress in-console.
Why?
I run a lot of long-duration test campaigns that generate copious amounts of console output. I usually monitor their progress by periodically checking the terminal to see if anything has failed so far. This usually means scrolling back in the console, looking for that telltale FAILED indication. It can be a bit of a pain hunting for that information!
This plugin writes up-to-date summary statistics for each test, as it executes, to a file on disk. That file is then continually read by a small client that prints its results to terminal. That way I can split my screen and monitor both the raw console output from Pytest and the client's summary output. And suddenly life becaomes just a little bit brighter. :-)
Install
pip install pytest-tally
Usage
usage: tally [-h] [-c] [-f] [-r ROWS] [filename]
positional arguments:
filename path to data file
options:
-h, --help show this help message and exit
-c, --clear [c]lear existing data when starting a new run (default: False)
-f, --fixed-width make all table rows [f]ixed-width (default: False)
-r ROWS, --rows ROWS max number of [r]ows to display (default: no limit)
- Run Pytest like you normally would, but specify the
--tally
option:pytest --tally
- Open another terminal session, activate your venv, and type in
tally
to start the client. - Ctrl-C exits the client (for now - improvements coming)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for pytest_tally-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a78b406df1aede748eaa8a26c9a89adf84847b92fda659d6315306b06e7a8e3 |
|
MD5 | 6ebee6a88bd3a3355a597b1c9c0655ad |
|
BLAKE2b-256 | 517a896296b404e29facd2f2354e9b275e486c5121a39570b3cdf3fed9400fdf |