Test
Build the workspace and execute tests through the active Bun orchestrator. By default the run uses the VM-based @webstir-io/webstir-testing provider, but the Bun test flow still composes the canonical testing package rather than re-implementing test execution.
Purpose
- Validate behavior via end-to-end and smoke tests.
- Keep the public contracts locked down.
When To Use
- After changes to pipelines or templates.
- In CI to gate merges and releases.
CLI
webstir test --workspace <path> [--runtime <frontend|backend|all>]- In this repo:
bun run webstir -- test --workspace "$PWD/<workspace>"
Steps
- Build the relevant frontend and/or backend targets for the workspace mode.
- Discover tests under
src/**/tests/. - Compile those tests into
build/**. - Execute the compiled suites through the canonical testing providers and print a pass/fail summary.
Scope the run
- Use
--runtime frontend,--runtime backend, or--runtime all(default) to limit which suites compile and execute. - The CLI logs the resolved workspace mode plus your filter so you can confirm what actually ran.
- Environment toggle:
WEBSTIR_TEST_RUNTIME=<scope>mirrors the flag and is convenient for scripts/CI.
Provider Selection
Defaults
@webstir-io/webstir-testing(pinned VM runtime) runs compiled tests inside the sandbox that ships with the CLI.- Provider overrides apply to the entire manifest run; mixed providers per-module are not supported.