Scoop API

scoop:scoop.test:0.1.0

scoop.test.execution

API

  • struct TestAction

    One test action paired with the source location used when an ordinary exception has no assertion location.

  • struct TestActions

    A test body with optional setup and cleanup actions. Cleanup runs after an initialized case even when setup or the body fails.

  • struct TestFailure

    A captured exception with its test phase and attributed source location.

  • enum TestPhase

    The stage of test execution in which a failure occurred.

  • enum TestResult

    The completed result of executing one initialized test case.

  • function completeTestRun

    Emits the final completion event for the generated test runner after all selected cases have been handled.

  • function finishTestRun

    Completes suite reporting, or checks that a private single-case dispatch published its result.

  • function isTestSelected

    Interprets the generated runner's case selection arguments and ignored-case policy for one stable case index.

  • function runReportedTestCase

    Executes one selected test case and emits its structured start and result events for the command-line test runner.

  • function runSelectedTestCase

    Runs the selected case in its designated process and reports whether it completed successfully.

  • function runTestCase

    Initializes and runs one test, capturing initialization, setup, body, and cleanup failures in [TestResult]. Cleanup still runs after setup failure, while the body is skipped.