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.2.0.tar.gz (7.0 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.2.0-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: recov-0.2.0.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for recov-0.2.0.tar.gz
Algorithm Hash digest
SHA256 6b23062375c87dd23d20c8f2351c1135433b3fc3dcf6e83527cdfe0b00a5f1fa
MD5 f73dff2c9b9b34b2f011e7d615270f13
BLAKE2b-256 f1beef31c177b0cc5606af1f88534dafaf291bb04cb5a8c2e89bc8765809a7bf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: recov-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for recov-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 93b4c8493a2e6454c95c801cfda7c0f3135c681c0da7d452be9d93ef66c71628
MD5 94cc2c51cc1382130a285c395d6eb6c8
BLAKE2b-256 a320f035645734530825ad602fcc00e7e6ef71ec149ce77cdee5914cfb7206d6

See more details on using hashes here.

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