Skip to content

User Guide

Deep dives into every Specwright feature.

  • @spec Decorator

    Runtime type validation, docstring enforcement, and metadata.

    @spec

  • Error Handling

    Declarative exception handling with @handle_errors.

    Error Handling

  • State Machines

    Finite state machines with validated transitions, hooks, and history.

    State Machines

  • Test Requirements

    Declare required tests and enforce them with a pytest plugin.

    Testing

  • CLI Usage

    Scaffold projects, generate code, validate, and build docs.

    CLI