Skip to main content
Stellar Engineering Command Banner

PyPI Build Status Python Versions License

PyPI Build Status Python Versions License

Captain's Log: ML-powered Sensor Telemetry Analysis module for pytest that identifies high-impact, low-complexity areas to test first.

Scanning the planetary surface (codebase) to determine sensor coverage (test coverage) and identify critical impact zones for the fleet.

Features

  • Coverage Impact Analysis: Builds call graphs to identify high-impact functions
  • ML Complexity Estimation: Predicts test complexity with confidence intervals
  • Prioritization: Suggests what to test first based on impact and complexity
  • Refitted Out of the Box: Includes pre-trained model, no console calibration required
  • Warp Speed Performance: Optimized for speed (analyzes 1700+ functions in ~1.5 seconds)
  • Real-time Telemetry: Visual progress bars and step-by-step timing

Docking Procedures

pip install pytest-coverage-impact

Flight Manual

# Run sensor telemetry analysis (--cov-report=json automatically added)
pytest --cov=your_project --coverage-impact

# Show top 10 functions by priority
pytest --cov=your_project --coverage-impact --coverage-impact-top=10

# Generate Telemetry Data (JSON report)
pytest --cov=your_project --coverage-impact --coverage-impact-json=report.json

Example Telemetry Output

Top Functions by Priority (Impact / Complexity)
┏━━━━━━━━━━┳━━━━━━━┳━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━┓
┃ Priority ┃ Score ┃ Impact ┃ Complexity ┃ Function   ┃
┡━━━━━━━━━━╇━━━━━━━╇━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━┩
│        1 │  2.45 │   12.5 │  0.65 [±0.15] │ module.py │

How It Works

  1. Call Graph Analysis: Parses AST to build function call relationships
  2. Impact Calculation: impact = call_frequency × (1 - coverage_pct)
  3. Complexity Estimation: Uses Random Forest ML model (0-1 scale)
  4. Prioritization: priority = (impact × confidence) / (complexity × effort)
  5. Reporting: Generates formatted sensor reports showing what to test first

Model Training (Optional)

Module includes pre-trained model - no training required. To recalibrate:

# Combined command - collects telemetry and recalibrates model
pytest --coverage-impact-train

See docs/TRAINING_COMMANDS.md for details.

Requirements

  • Python 3.8+
  • pytest 7.0+
  • coverage 6.0+
  • scikit-learn 1.0+
  • numpy 1.20+
  • rich 13.0+ (terminal formatting)

Mission Log

Documentation

Development

# Install in development mode
pip install -e ".[dev]"

# Run tests
pytest tests/

# Format code
black pytest_coverage_impact tests/
ruff check pytest_coverage_impact tests/

License

MIT License

Release files for pytest-coverage-impact 1.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pytest-coverage-impact 1.5.0
File Size Uploaded
pytest_coverage_impact-1.5.0.tar.gz 249.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pytest-coverage-impact 1.5.0
File Interpreter ABI Platform
pytest_coverage_impact-1.5.0-py3-none-any.whl Python 3 none any Details

Total release size: 500.8 kB

Release files / pytest_coverage_impact-1.5.0.tar.gz

Download URL pytest_coverage_impact-1.5.0.tar.gz
Size 249.0 kB
Tags Source
SHA-256 checksum
How to use checksums
944304c19bc474a7374cf06f0e0df153cba4b7780052038cf30767beb8797638
BLAKE2b-256 checksum
How to use checksums
afd0d6fb054ade1ae6c8bc55f67d22122a52156cb8b00a406e63cf8fa30902be
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 16, 2026.

Transparency log

Release files / pytest_coverage_impact-1.5.0-py3-none-any.whl

Download URL pytest_coverage_impact-1.5.0-py3-none-any.whl
Size 251.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
de2b541bc531acae1f6faf27e831817ee8c794689f083b5c4e0c73f8808363b3
BLAKE2b-256 checksum
How to use checksums
b4ebc92acea8c603e6f615ed708698d4f7f1e11cde5b987b560608e758b78bb1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 16, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.5.0 This release

2 release files

1.2.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page