Running tests
CLI commands for running feature and product tests.
Table of contents
Feature tests
splent feature:test # All features, default levels
splent feature:test auth # Single feature
splent feature:test auth --unit # Single level
splent feature:test auth --unit -v # Verbose
splent feature:test -k test_login # Keyword filter
splent feature:test --e2e # E2E only (needs running server)
splent feature:test --load # Load only (needs running server)
Default (no flags): unit + integration + functional.
Product tests
splent product:test # Active product
splent product:test --product my_app # Explicit product
splent product:test --product app_a --product app_b --unit
Delegates to feature:test for each product.
Default levels
| Flag | Level | Requires |
|---|---|---|
--unit |
Unit | Nothing |
--integration |
Integration | Test database |
--functional |
Functional | Test database + Flask app |
--e2e |
E2E (Selenium) | Running server |
--load |
Load (Locust) | Running server |
Without flags, the first three run. E2E and load need explicit flags because they require external services.
See also
feature:test— CLI command referenceproduct:test— product-level test runner- Test levels — how to write tests at each level