Documentation
¶
Overview ¶
Package testing provides the ephemeral test topology engine for devx test ui. It provisions short-lived, isolated database containers on random ports so that E2E/Playwright/Cypress tests can run in a clean environment without touching the developer's active development databases.
One-to-one engine mapping ¶
devx db spawn only supports ONE container per engine type (e.g. a single devx-db-postgres). The ephemeral engine mirrors this 1:1 so each engine in devx.yaml gets exactly one ephemeral clone. Supporting multiple independent instances of the same engine type (e.g., two separate Postgres databases) is intentionally deferred to a future iteration when real use-cases emerge.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunFlow ¶
RunFlow is the primary orchestrator for `devx test ui`. It:
- Provisions ephemeral database containers for every engine in dbEngines.
- Runs optional pre-processing steps (setup) with the injected environment.
- Executes the main test command with the injected environment
- Tears down all ephemeral containers and volumes unconditionally when done.