Skip to main content

Python package to generate plots from coverage report

Project description

plot_coverage

https://img.shields.io/pypi/v/plot_coverage.svg https://img.shields.io/travis/modasserbillah/plot_coverage.svg

Python package to generate plots from coverage report

Generate visual plots to demonstrate your code coverage. Interactive plots are opened in the browser immediately after running the script. HTML files for the plots are stored alongside the coverage report inside htmlcov folder.

Plots are generated using plotly express.

Usage

  • Install using pip install plot-coverage

  • From the project root (where htmlcov folder is located), run:
    • plot_coverage –plot=treemap

    • plot_coverage –plot=sunburst

Note: Make sure htmlcov/index.html is present at the root of your project before running the above. So, coverage html should be run before attempting this.

Example

Treemap

Treemap of coverage report

Sunburst

Sunburst of coverage report

Features

  • Generate Treemap plot for showing your coverage report with color sequence based on coverage percentage.

  • Generate Sunburst plot for showing your coverage report with color sequence based on coverage percentage.

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

  • Free software: BSD license

History

1.0.0 (2020-06-25)

  • First release on PyPI.

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

plot_coverage-1.0.2.tar.gz (12.8 kB view hashes)

Uploaded Source

Built Distribution

plot_coverage-1.0.2-py2.py3-none-any.whl (5.3 kB view hashes)

Uploaded Python 2 Python 3

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