Skip to main content

A pygments lexer for pytest output.

Project description

Build Status Coverage 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-1.2.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pygments_pytest-1.2.0-py2.py3-none-any.whl (4.4 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: pygments_pytest-1.2.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.7.1 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.6.7

File hashes

Hashes for pygments_pytest-1.2.0.tar.gz
Algorithm Hash digest
SHA256 fc48e2fffd6d3c047a61c1db8b88ab069983f50e733fe70a7846098eb28bc955
MD5 1ab1a9c4a38c2e770d1e7e2fc393f40f
BLAKE2b-256 f7d59a7d29343a1d9e9f40a2e0ded244fd74dc308f84180f82268f243db54f2a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pygments_pytest-1.2.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.7.1 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.6.7

File hashes

Hashes for pygments_pytest-1.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b40b23c32cfed8825b2551448b9327905343600f07ba0824ebf5be2b05c88d32
MD5 76c58c5b99776802722ea24badbd8cec
BLAKE2b-256 6e861704b81d451c1707acd8bd596a632f1bcc6fbe183c83dfc45a4b35ebc0b7

See more details on using hashes here.

Supported by

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