Skip to main content

Analyze test redundancy using coverage data.

Project description

recov: Optimize Test Suites & Speed Up CI/CD

Motivation

Modern software projects often accumulate large test suites, but not all tests contribute unique value. Redundant tests slow down CI/CD pipelines, waste compute resources, and obscure true coverage gaps. recov helps you identify and remove tests that do not contribute unique coverage, so you can:

  • Speed up CI/CD by running only the essential tests
  • Reduce maintenance by focusing on meaningful tests

Features

  • Detects redundant tests using coverage data (lines and branches)
  • Rich terminal output for easy review
  • Works with pytest-cov and Coverage.py
  • CLI and Python API

Quickstart

  1. Run your tests with coverage contexts:
    pytest --cov=src --cov-context=test --cov-branch --cov-append
    
  2. Analyze for redundant tests:
    uvx recov  # or use the CLI entrypoint
    

Usage

  • By default, recov analyzes line coverage. Use --with-branches to require branch coverage.
  • Results show which tests are redundant (their coverage is fully covered by other tests).
  • Remove or refactor redundant tests to optimize your suite and speed up CI/CD.

Development & Contributing

Contributions welcome: open issues or PRs to improve detection, performance, or usability.

AI Use Disclaimer

This tool has been built with a lot of support of AI.

License

MIT

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

recov-0.3.0.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

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

recov-0.3.0-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file recov-0.3.0.tar.gz.

File metadata

  • Download URL: recov-0.3.0.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for recov-0.3.0.tar.gz
Algorithm Hash digest
SHA256 3ef9bcd5ce4cb975db389344f02b23eb59a5e7764eb40c921ec998e257f19a05
MD5 d314d9fd1ef47a8ea0df65b327f45a2e
BLAKE2b-256 320b42894500f6ec0ac208470fb805c5da54370d72a0b24ce1f99d00fde278e1

See more details on using hashes here.

Provenance

The following attestation bundles were made for recov-0.3.0.tar.gz:

Publisher: pypi.yml on jirikuncar/recov

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

File details

Details for the file recov-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: recov-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 9.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for recov-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 556d1177c65e58525164b4944125d6c69ddda30d938f9b0d16463178ca7c3a00
MD5 7ee29aaeb26d2bcc2cfdf8651e5fda19
BLAKE2b-256 ba6f26cb50f6f913c625010e9bd0110c33bd9136f3e425d73e6358cff9fc1704

See more details on using hashes here.

Provenance

The following attestation bundles were made for recov-0.3.0-py3-none-any.whl:

Publisher: pypi.yml on jirikuncar/recov

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