Feature testing
Every feature ships its own test suite organized in layers. The framework provides fixtures, helpers, and conventions so that test setup is consistent across all features.
tests/
├── conftest.py # Shared fixtures
├── unit/ # Mocked, no DB, fast
├── integration/ # Real test DB
├── functional/ # Flask test_client, HTTP
├── e2e/ # Selenium (browser)
└── load/ # Locust (performance)
- Test environment. How the test database and Flask app are configured
- Fixtures. Framework fixtures, custom fixtures, scope rules
- Test levels. Unit, integration, functional, e2e, with real examples
- Running tests. CLI commands, flags, keyword filters
By default, feature:test runs unit + integration + functional. E2E and load require explicit flags.