Skip to main content

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

Metadata

Release files for recov 0.3.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 recov 0.3.0
File Size Uploaded
recov-0.3.0.tar.gz 8.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for recov 0.3.0
File Interpreter ABI Platform
recov-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 17.8 kB

Release files / recov-0.3.0.tar.gz

Download URL recov-0.3.0.tar.gz
Size 8.5 kB
Tags Source
SHA-256 checksum
How to use checksums
3ef9bcd5ce4cb975db389344f02b23eb59a5e7764eb40c921ec998e257f19a05
BLAKE2b-256 checksum
How to use checksums
320b42894500f6ec0ac208470fb805c5da54370d72a0b24ce1f99d00fde278e1
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 Nov 13, 2025.

Transparency log

Release files / recov-0.3.0-py3-none-any.whl

Download URL recov-0.3.0-py3-none-any.whl
Size 9.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
556d1177c65e58525164b4944125d6c69ddda30d938f9b0d16463178ca7c3a00
BLAKE2b-256 checksum
How to use checksums
ba6f26cb50f6f913c625010e9bd0110c33bd9136f3e425d73e6358cff9fc1704
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 Nov 13, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.0

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

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