Skip to main content

Coverage visualization tool that generates interactive treemaps

Project description

covmapy

CI codecov Python 3.9+ License CodeRabbit Pull Request Reviews

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 MIT License - 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.2.0.tar.gz (68.6 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.2.0-py3-none-any.whl (13.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for covmapy-0.2.0.tar.gz
Algorithm Hash digest
SHA256 fba7f8ff6fd16b608aef21a9fdb5cd7219a3336a0c27747bc730c6bd24d5ecf8
MD5 8c8eab0ec31e2d586d6d65fb1b3788b3
BLAKE2b-256 678b488878382db234cfd358a6788647c31d470686b457c69ecb6cd3242c8d49

See more details on using hashes here.

Provenance

The following attestation bundles were made for covmapy-0.2.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.2.0-py3-none-any.whl.

File metadata

  • Download URL: covmapy-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 13.2 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e0c661e6fa305fc35b6a6674ca4f120c25cf8ee2ee14edb120510e51e09af81a
MD5 f1857f114c7b4064e24a874cdea79536
BLAKE2b-256 d93e5decce2c0f9f023d2898c623742f199f386f4e7251f1cc5577662173994c

See more details on using hashes here.

Provenance

The following attestation bundles were made for covmapy-0.2.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