Skip to main content

A pytest plugin to make a test results report with Markdown table format.

Project description

.. contents:: **pytest-md-report**
:backlinks: top
:depth: 2


Summary
============================================
.. image:: https://badge.fury.io/py/pytest-md-report.svg
:target: https://badge.fury.io/py/pytest-md-report
:alt: PyPI package version

.. image:: https://img.shields.io/pypi/pyversions/pytest-md-report.svg
:target: https://pypi.org/project/pytest-md-report
:alt: Supported Python versions

.. image:: https://img.shields.io/pypi/implementation/pytest-md-report.svg
:target: https://pypi.org/project/pytest-md-report
:alt: Supported Python implementations

.. image:: https://img.shields.io/travis/thombashi/pytest-md-report/master.svg?label=Linux/macOS%20CI
:target: https://travis-ci.org/thombashi/pytest-md-report
:alt: Linux/macOS CI status

.. image:: https://img.shields.io/appveyor/ci/thombashi/pytest-md-report/master.svg?label=Windows%20CI
:target: https://ci.appveyor.com/project/thombashi/pytest-md-report/branch/master
:alt: Windows CI status

A pytest plugin to make a test results report with Markdown table format.


Installation
============================================
::

pip install pytest-md-report


Usage
============================================
::

$ pytest --md-report examples/

.. figure:: ss/pytest_md_report_example.png
:scale: 80%
:alt: output_example

Output example

Increase verbosity level:

::

$ pytest -v --md-report examples/

.. figure:: ss/pytest_md_report_example_verbose.png
:scale: 80%
:alt: output_example_verbose

Output example (verbose)


Options
============================================

Command options
--------------------------------------------
::

make test results report with markdown table format:
--md-report create markdown report. you can also specify the value
with PYTEST_MD_REPORT environment variable.
--md-report-verbose=VERBOSITY_LEVEL
verbosity level for pytest-md-report. if not set, using
verbosity level of pytest. defaults to 0. you can also
specify the value with PYTEST_MD_REPORT_VERBOSE
environment variable.
--md-report-color={auto,text,never}
auto: display colored (text and background) reports by
using ANSI escape codes. text: display colored (text)
reports by using ANSI escape codes. never: diplay report
without color. defaults to 'auto'. you can also specify
the value with PYTEST_MD_REPORT_COLOR environment
variable.


ini-options
--------------------------------------------
[pytest] ini-options in the first pytest.ini|tox.ini|setup.cfg file found:

::

md_report (bool): create markdown report.
md_report_verbose (string):
verbosity level for pytest-md-report. if not set, using
verbosity level of pytest. defaults to 0.
md_report_color (string):
auto: display colored (text and background) reports by
using ANSI escape codes. text: display colored (text)
reports by using ANSI escape codes. never: diplay report
without color. defaults to 'auto'.

Example of ``setup.cfg``:

::

[tool:pytest]
md_report = True
md_report_verbose = 0
md_report_color = auto


Dependencies
============================================
Python 3.5+

- `pytablewriter <https://github.com/thombashi/pytablewriter>`__
- `pytest <https://docs.pytest.org/en/latest/>`__
- `typepy <https://github.com/thombashi/typepy>`__


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-md-report-0.0.3.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

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

pytest_md_report-0.0.3-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file pytest-md-report-0.0.3.tar.gz.

File metadata

  • Download URL: pytest-md-report-0.0.3.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.6

File hashes

Hashes for pytest-md-report-0.0.3.tar.gz
Algorithm Hash digest
SHA256 a3163a5dd08aa78107a5b1030c4dfdf1a898e4ba09684369578c81ca1d32d157
MD5 dc5e6c810c0d80685a25c8f30afb9f22
BLAKE2b-256 b9aa273d4ac2fdb0156d1ba649e3cf76e864a86ea74857009253a5103c0b742b

See more details on using hashes here.

File details

Details for the file pytest_md_report-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: pytest_md_report-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.6

File hashes

Hashes for pytest_md_report-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 88a2f5105b82c5f93d1e6ab37e122df6b573b77a74b5324a8d4b77f3d42c64b0
MD5 08d6877b8a47627024417d47b1ec029e
BLAKE2b-256 45826d90e70af1ed7ccd2918065951351450ee4726c1bc397813e6a74901911f

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