Skip to main content

pytest plugin for generating prettier terminal output

Project description

pytest-pretty-terminal

This pytest plugin makes the terminal output prettier and more verbose. Beside a bit formatting you will see the doc string and the parametrization of a test case printed to the terminal. Live logging is enabled by default.

System requirements

Defining the system requirements with exact versions typically is difficult. But there is a tested environment:

  • Linux
  • Python 3.8.12
  • pip 21.2.4
  • pytest 5.2.0

Other versions and even other operating systems might work. Feel free to tell us about your experience.

Versioning

In our versioning we follow Semantic Versioning.

Installing for usage

The Python Package Index takes care for you. Just use pip.

python -m pip install pytest-pretty-terminal

Installing for development

First, you need to get the sources.

git clone git@github.com:devolo/pytest-pretty-terminal.git

Then you need to take care of the requirements.

cd pytest-pretty-terminal
python setup.py install

Usage

To activate the pretty output, you have to start pytest with the pretty option. Otherwise, the plugin is skipped.

pytest --pretty

Compatibility with other pytest plugins

This plugin should not interfere with other plugins. In case of using pytest-xdist, you will lose live logging, as xdist uses stdin/stdout for communicating with its workers.

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

pytest-pretty-terminal-1.1.0.tar.gz (11.3 kB view details)

Uploaded Source

Built Distribution

pytest_pretty_terminal-1.1.0-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file pytest-pretty-terminal-1.1.0.tar.gz.

File metadata

  • Download URL: pytest-pretty-terminal-1.1.0.tar.gz
  • Upload date:
  • Size: 11.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

File hashes

Hashes for pytest-pretty-terminal-1.1.0.tar.gz
Algorithm Hash digest
SHA256 3a284bfaee4dac65524762436bbd875d70ca2dd1384170ef212887f860068f8f
MD5 dff88a315b35ce5197fdff748916b49e
BLAKE2b-256 fa0f8a63aaad5104e8813d8f9f701b22950a1ebca50be176845b8eadeca8c85c

See more details on using hashes here.

File details

Details for the file pytest_pretty_terminal-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: pytest_pretty_terminal-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

File hashes

Hashes for pytest_pretty_terminal-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fe40d237383efe2d023f2b4faea9784da7f81c8b54987261ec5bb11966b98e77
MD5 d322b48628e99b4e13eb762a96c92bb3
BLAKE2b-256 c61edd775f91f695ebe9c70267e2cbd8c5520017618b92e25b3cc4d96de246b9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page