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.


Table of contents


Back to top

splent. Distributed by an LGPL license v3. Contact us: drorganvidez@us.es