Skip to main content

Coverage visualization tool that generates interactive treemaps

Project description

covmapy

CI codecov Python 3.9+ License

A Python CLI tool that visualizes test coverage data as interactive treemap charts.

Features

  • Convert coverage.xml files to interactive HTML visualizations
  • Treemap representation showing coverage by file/module hierarchy
  • Customizable color schemes and dimensions
  • Zero-configuration usage with sensible defaults

Installation

pip install covmapy

Usage

Basic usage:

covmapy coverage.xml

With options:

covmapy coverage.xml --output my-coverage.html --width 1200 --height 800 --colorscale Viridis

Options

  • --output, -o: Output HTML file path (default: coverage.html)
  • --width, -w: Figure width in pixels (default: 800)
  • --height, -h: Figure height in pixels (default: 600)
  • --colorscale: Color scheme for visualization (default: RdYlGn)
    • Available: RdYlGn, Viridis, Blues, Reds, YlOrRd, YlGnBu, RdBu, Spectral

Example

Generate coverage data and visualize:

# Generate coverage.xml using pytest-cov
pytest --cov=your_package --cov-report=xml

# Create visualization
covmapy coverage.xml --output coverage-report.html

Requirements

  • Python 3.9+
  • Coverage data in XML format (e.g., from pytest-cov, coverage.py)

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

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

covmapy-0.1.0.tar.gz (68.8 kB view details)

Uploaded Source

Built Distribution

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

covmapy-0.1.0-py3-none-any.whl (16.3 kB view details)

Uploaded Python 3

File details

Details for the file covmapy-0.1.0.tar.gz.

File metadata

  • Download URL: covmapy-0.1.0.tar.gz
  • Upload date:
  • Size: 68.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for covmapy-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a3632d411a76367d36466553cb0f9fad842ef2006fc0ecac12d5e5786e9738ec
MD5 6bc2d0ed9f33285743eeff898e645b36
BLAKE2b-256 2b146e9b2f5dd87cd3da8bb8101a04aacc854ae0cce49e1516040a688027f451

See more details on using hashes here.

Provenance

The following attestation bundles were made for covmapy-0.1.0.tar.gz:

Publisher: release.yml on zhengxii921/covmapy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file covmapy-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: covmapy-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 16.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for covmapy-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 777e9aaaafc277ba3ead4083bac20c76851acb5a161e9ae49eeabb2e2e7e85f8
MD5 7f4bfbd33940c95460de4b63530c1567
BLAKE2b-256 06948d4db947c33351fba41a2fbbbe3c4cd90839d7aa35a75f23deace72abb97

See more details on using hashes here.

Provenance

The following attestation bundles were made for covmapy-0.1.0-py3-none-any.whl:

Publisher: release.yml on zhengxii921/covmapy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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