Quick Start: Running Tests¶
TL;DR¶
That's it! Redis and PostgreSQL will start automatically in Docker containers.
What You'll See¶
๐ณ Starting test containers (Redis & PostgreSQL)...
โณ Waiting for Redis to be ready...
โ
Redis is ready
โณ Waiting for PostgreSQL to be ready...
โ
PostgreSQL is ready
โ
All test services are ready
tests/test_cache.py ...................... [ 10%]
tests/test_integration.py ................ [ 20%]
...
260 passed, 5 skipped in 75.76s
๐งน Cleaning up test containers...
โ
Test containers cleaned up
Requirements¶
- Docker (must be running)
- Python 3.11+
- Dependencies:
pip install -e ".[dev]"
Common Commands¶
Run all tests¶
Run specific test file¶
Run with coverage¶
Skip Docker (use existing services)¶
What Changed?¶
Before: 24 tests skipped (Redis/PostgreSQL not available)
After: 0 tests skipped for Redis/PostgreSQL - containers auto-start!
Need Help?¶
See docs/TESTING.md for full documentation.