# FAIL Required test coverage of 80% not reached. Total coverage: 75.00%

- **ID:** `python/pytest-cov-fail-under`
- **Domain:** python
- **Category:** config_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

The test suite's coverage is below the threshold set by --cov-fail-under. This causes pytest to exit with a non-zero status, failing CI.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 3.x | active | — | — |

## Workarounds

1. **** (95% success)
   ```
   Use coverage report to identify missing lines:
coverage report -m
Then add tests targeting those lines.
   ```
2. **** (90% success)
   ```
   In .coveragerc:
[run]
omit =
    */tests/*
    */migrations/*
   ```
3. **** (80% success)
   ```
   Use # pragma: no branch for branches that are impossible to test.
   ```

## Dead Ends

- **** — This may pass CI but reduces the quality gate, allowing coverage to drop further over time. (70% fail)
- **** — This disables the coverage check entirely, eliminating the quality gate. (90% fail)
- **** — This is a form of cheating and may hide genuinely untested code. (95% fail)
