Metadata-Version: 2.4
Name: recov
Version: 0.3.0
Summary: Analyze test redundancy using coverage data.
Project-URL: Homepage, https://github.com/jirikuncar/recov
Project-URL: Documentation, https://github.com/jirikuncar/recov#readme
Project-URL: Repository, https://github.com/jirikuncar/recov
Project-URL: Changelog, https://github.com/jirikuncar/recov/releases
Project-URL: Issues, https://github.com/jirikuncar/recov/issues
Author-email: Jiri Kuncar <jiri.kuncar@gmail.com>
License: MIT License
        
        Copyright (c) 2025 Jiri Kuncar
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
License-File: LICENSE
Keywords: coverage,static-analysis,test
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: SQL
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Software Development :: Testing
Classifier: Topic :: Utilities
Classifier: Typing :: Typed
Requires-Python: >=3.12
Requires-Dist: coverage
Requires-Dist: rich
Description-Content-Type: text/markdown

# 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:
   ```bash
   pytest --cov=src --cov-context=test --cov-branch --cov-append
   ```
2. Analyze for redundant tests:
   ```bash
   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
