Feature testing

Every feature ships its own test suite, in layers. The framework provides the fixtures and helpers, so setting up a test looks the same in every feature.

splent feature:test notes
The five test levels of a feature and what each needs Unit unit/ mocked, no database the fastest Integration integration/ the test database real queries Functional functional/ the Flask test client HTTP, full stack E2E e2e/ Selenium, a browser a running server Load load/ Locust a running server feature:test runs these by default only with --e2e or --load
Every level lives under the feature's tests/, next to a conftest.py that imports the framework's fixtures.
  • Test environment, how the test database and the app are set up
  • Fixtures, the framework’s fixtures, your own, and scope rules
  • Test levels, unit, integration, functional and e2e, with examples
  • Running tests, commands, flags and keyword filters

Table of contents


Back to top

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