# Ran 0 tests in 0.000s

OK

- **ID:** `python/unittest-tests-not-discovered`
- **Domain:** python
- **Category:** config_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

unittest discovery found no tests because the module/class/method naming didn't match the pattern (test*.py, TestCase subclass, test_* method), or the start directory was wrong.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 3.10 | active | — | — |
| 3.11 | active | — | — |
| 3.12 | active | — | — |

## Workarounds

1. **** (95% success)
   ```
   # tests/test_calc.py
import unittest

class TestCalc(unittest.TestCase):
    def test_add(self):
        self.assertEqual(1+1, 2)

# run
python -m unittest discover -s tests -p 'test*.py' -v
   ```
2. **** (90% success)
   ```
   python -m unittest discover -s . -t . -p '*_test.py' -v
   ```

## Dead Ends

- **** — Verbosity shows the same 'Ran 0 tests'; it doesn't fix discovery. (95% fail)
- **** — Different discovery rules; may still collect zero if names are wrong. (60% fail)
- **** — Only affects direct execution, not discovery. (70% fail)
