# ERROR: setuptools.errors.TestFailedError: Test suite 'tests' not found in package 'mypackage'

- **ID:** `python/setuptools-test-suite-not-found`
- **Domain:** python
- **Category:** config_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

The test suite directory or module specified in setup.cfg does not exist.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 3.9 | active | — | — |
| 3.10 | active | — | — |

## Workarounds

1. **Create the test suite directory with __init__.py** (95% success)
   ```
   Run: mkdir tests; touch tests/__init__.py; touch tests/test_example.py
   ```
2. **Correct the test_suite path in setup.cfg** (90% success)
   ```
   Set test_suite = tests.test_suite (if using a module).
   ```

## Dead Ends

- **Creating an empty tests directory** — An empty directory is not a valid test suite. (80% fail)
- **Removing the test_suite configuration** — Tests will not run automatically. (70% fail)
