# no tests ran in 0.01s
ERROR: file or directory not found: tests/test_missing.py

- **ID:** `python/pytest-deselect-no-tests`
- **Domain:** python
- **Category:** config_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

A path passed to pytest does not exist, or a -k expression matched nothing (the latter usually shows 'no tests ran' without the file error). Often caused by a typo in CI config or a renamed test file.

## Version Compatibility

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

## Workarounds

1. **** (95% success)
   ```
   pytest --collect-only tests/ -q
# check the file exists:
ls tests/test_missing.py
# fix the path in CI config
   ```
2. **** (90% success)
   ```
   pytest --collect-only -q -k 'login and not slow'
pytest -k 'login and not slow'
   ```

## Dead Ends

- **** — Hides the fact that the intended test file was renamed or moved; real tests are silently skipped. (85% fail)
- **** — Runs everything, which may be slow and may include tests that were intentionally excluded. (50% fail)
