# Ran 0 tests in 0.000s

NO TESTS RAN

FAILED (errors=0)

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

## Root Cause

unittest discovery found no test methods because the class does not subclass unittest.TestCase, method names do not start with `test`, or the module is not named `test*.py` / the start directory is wrong.

## Version Compatibility

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

## Workarounds

1. **** (95% success)
   ```
   Ensure the class inherits TestCase and methods start with test:
import unittest
class TestMath(unittest.TestCase):
    def test_add(self):
        self.assertEqual(1+1, 2)
   ```
2. **** (90% success)
   ```
   Point discovery at the right start dir and pattern:
python -m unittest discover -s tests -p 'test_*.py' -v
   ```

## Dead Ends

- **** — Default discovery pattern is `test*.py`; `tests.py` does not match, so still 0 tests. (80% fail)
- **** — Running via `python -m unittest discover` ignores that block; discovery still finds nothing. (75% fail)
