Expand description
Core test model types: TestId, TestCase, TestSuite, TestPlan, TestOutcome,
TestInfo, TestStep, SuiteMode.
Structs§
- Attachment
- An artifact attached to a test result.
- HookDef
- Hook registration for plan building.
- Hook
Registration - Unified hook registration metadata used by adapters before execution hooks are built.
- Hooks
- Lifecycle hooks attached to a suite.
- Shard
Info - Step
Handle - Handle to an in-progress step. Must be completed via
end(). - Suite
Def - Suite metadata for plan building.
- Test
Case - A single test case with metadata and body.
- Test
Failure - A test failure with diagnostic information.
- Test
Fixtures - Unified fixture bag for test/step/hook callbacks.
- Test
Hooks - Programmatic suite-level hooks supplied by the test author at runtime.
- TestId
- Globally unique test identifier.
- Test
Info - Runtime test information accessible during test execution.
Mirrors Playwright’s
TestInfointerface. - Test
Modifiers - Runtime test modifiers set by
test.skip(),test.fail(),test.slow()inside a test body. Shared viaArcbetween the NAPI layer (JS thread writes) and the Rust worker (reads after callback returns). - Test
Outcome - Result of a single test attempt.
- Test
Plan - The full test plan after discovery + filtering + sharding.
- Test
Plan Builder - Builds a
TestPlanfrom flat test cases, suite definitions, and hooks. - Test
Step - A structured test step (maps to Playwright’s
test.step()). - Test
Suite - A group of tests (maps to
test.describe/#[cfg(test)] mod).
Enums§
- Attachment
Body - Expected
Status - Hook
Kind - Hook kind with the associated callback.
- Hook
Owner - Where a hook attaches in the runner model.
- Hook
Phase - Generic lifecycle phase shared across all front-end hook syntaxes.
- Hook
Scope - Generic lifecycle scope shared across E2E and BDD hooks.
- Step
Category - Category of a test step.
- Step
Status - Status of a completed test step.
- Suite
Mode - How tests within a suite are scheduled.
- Test
Annotation - Test
Status - Status of a completed test.
Type Aliases§
- HookFn
- Test-scoped hook (before_each / after_each). Receives fixture pool +
TestInfo.TestInfoprovides access to test tags, name, step API, and event bus. - Suite
Hook Fn - Suite-scoped hook (before_all / after_all). Receives only the fixture pool. Runs once per suite per worker, no test context available.
- TestFn
- The async test body: takes a fixture pool, returns success or failure.
Uses
Arcso tests can be re-dispatched for retries and repeatEach.