semvec/pypi-packages huggingface dataset:
plot-coverage 1.0.2
Python package to generate plots from coverage report
License: BSD license
Requires Python: >=3.6
Keywords: plot_coverage

=============
plot_coverage
=============


.. image:: https://img.shields.io/pypi/v/plot_coverage.svg
        :target: https://pypi.python.org/pypi/plot_coverage

.. image:: https://img.shields.io/travis/modasserbillah/plot_coverage.svg
        :target: https://travis-ci.com/modasserbillah/plot_coverage





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
========
.. image:: https://raw.githubusercontent.com/modasserbillah/plot_coverage/master/treemap.png
   :alt: Treemap of coverage report
   :class: with-shadow
   :scale: 50

Sunburst
=========
.. image:: https://raw.githubusercontent.com/modasserbillah/plot_coverage/master/sunburst.png
   :alt: Sunburst of coverage report
   :class: with-shadow
   :scale: 50

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.

.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage


* Free software: BSD license

=======
History
=======

1.0.0 (2020-06-25)
------------------

* First release on PyPI.