Skip to main content

A pygments lexer for pytest output.

Project description

Build Status Azure DevOps coverage Build Status

pygments-pytest

A pygments lexer for pytest output

See some demos! Or see it in action on pytest.org.

Installation

pip install pygments-pytest

Usage

This library provides a pygments lexer called pytest.

.. code-block:: pytest

    $ pytest test.py
    ========================== test session starts ===========================
    platform linux -- Python 3.6.6, pytest-4.0.1.dev43+g0d529847.d20181123, py-1.7.0, pluggy-0.8.0
    rootdir: /home/asottile/workspace/pytest, inifile: tox.ini
    collected 1 item

    test.py .                                                          [100%]

    ======================== 1 passed in 0.01 seconds ========================

This library also provides a sphinx extension. It can be enabled by adding 'pygments_pytest' to the extensions setting in your conf.py.

The colors can be tweaked using the sphinx setting (in conf.py) pygments_pytest_ansi_colors:

pygments_pytest_ansi_colors = {
    'Cyan': '#06989a',
    'Green': '#4e9a06',
    'Red': '#c00',
    'Yellow': '#c4A000',
}

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

pygments_pytest-2.0.0.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

pygments_pytest-2.0.0-py2.py3-none-any.whl (5.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file pygments_pytest-2.0.0.tar.gz.

File metadata

  • Download URL: pygments_pytest-2.0.0.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.9

File hashes

Hashes for pygments_pytest-2.0.0.tar.gz
Algorithm Hash digest
SHA256 d0aabdc688d58553db16d2aadefd30e9cac7bc5240938b60d87f5379dcede7e3
MD5 c6d2ed7118f8e9136de0573d3b12e077
BLAKE2b-256 2d8ba9d2144b70a17ab94c49ae42147716e1c4c0b623420927ef9cdae77df720

See more details on using hashes here.

File details

Details for the file pygments_pytest-2.0.0-py2.py3-none-any.whl.

File metadata

  • Download URL: pygments_pytest-2.0.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.9

File hashes

Hashes for pygments_pytest-2.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 34ee72cd9979b1a1523b4738389a28822d6ad2f43920bb9f0645d73ffb6eb586
MD5 df791f460112686236e910f60385b653
BLAKE2b-256 1546fd15ad4426a25b3bb2cbcef73a3f9d0c8ef3cace34e4f85c768b1515be55

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