A pytest plugin to make a test results report with Markdown table format.
Project description
Summary
A pytest plugin to make a test results report with Markdown table format.
Installation
pip install pytest-md-report
Usage
$ pytest --md-report examples/
Increase verbosity level:
$ pytest -v --md-report examples/
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: display report without color. defaults to 'auto'. you can also specify the value with PYTEST_MD_REPORT_COLOR environment variable. --md-report-margin=MARGIN margin size for each cells. defaults to 1. you can also specify the value with PYTEST_MD_REPORT_MARGIN 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: display report without color. defaults to 'auto'. md_report_margin (string): margin size for each cells. defaults to 1.
Example of setup.cfg:
[tool:pytest] md_report = True md_report_verbose = 0 md_report_color = auto
Dependencies
Python 3.5+
Project details
Release history Release notifications | RSS feed
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.5.tar.gz
(8.5 kB
view hashes)
Built Distribution
Close
Hashes for pytest_md_report-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3f2986a3634bc94da25d9e8c491c0805e05657f4b32485f54ea883e43c12fbb |
|
MD5 | f3ae9a8092ed61a9accf6c4911a09719 |
|
BLAKE2b-256 | 2c00fad0eda193fe77351cf2279b3c12e1b6b5888c480266afaf2fe1891f178b |