# ERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...]
pytest: error: unrecognized arguments: --cov=app --cov-report=term-missing

- **ID:** `python/pytest-cov-not-found`
- **Domain:** python
- **Category:** install_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

pytest-cov is not installed, so the --cov flags are unknown. Often happens in CI where the dev requirements were not installed.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 7.x | active | — | — |
| 8.x | active | — | — |

## Workarounds

1. **** (97% success)
   ```
   pip install pytest-cov
# or
pip install -e '.[test]'

pytest --cov=app --cov-report=term-missing
   ```
2. **** (90% success)
   ```
   pip install coverage
coverage run -m pytest
coverage report -m
   ```

## Dead Ends

- **** — Still errors because the plugin is missing; the config is loaded before flag parsing. (90% fail)
- **** — The flag itself is provided by pytest-cov; without the plugin it is also unrecognized. (85% fail)
