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)
  • Fast, in-memory analysis with DuckDB and PyArrow
  • 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.1.0.tar.gz (7.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.1.0-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for recov-0.1.0.tar.gz
Algorithm Hash digest
SHA256 aca49818cd437e26dffb169fecd95d607fa8ce417ea932c872d8e6542c1231c3
MD5 7e79272f9fb346d9ed8fb39c16fe534a
BLAKE2b-256 a7f57e90f875f081f721b5c3b8fde44c0d196cac61964d6ae467cbc3abcda9a0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: recov-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.4 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ae17817c757bd7a89566f29b5a43290b5e64c2ec164c54572afc534dec693a0e
MD5 54ec3cd4541eafeaaa7ff19e5955ccbf
BLAKE2b-256 fcd6ab1669b31e7343c426933531d8d9ed1fd5ddb9bab1ca8f32021e6b42123b

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