SexySpex.StepExecutor (sexy_spex v0.1.0)
View SourceCore step execution system for SexySpex.
Handles stepping, manual mode, timing, and execution control across all adapters. This module provides framework-agnostic step control, allowing manual mode to work with any testing scenario (Scenic, Phoenix, libraries, etc.).
Summary
Functions
Executes a step with the configured execution mode.
Functions
Executes a step with the configured execution mode.
Supports:
- Normal execution (immediate)
- Timed execution (with delays)
- Manual mode (step-by-step with user prompts)
Parameters
step_type
- The type of step ("Given", "When", "Then", "And")description
- Human-readable description of the stepstep_function
- The function to execute for this step
Configuration
Reads configuration from application environment:
:sexy_spex, :manual_mode
- Boolean, enables manual stepping:sexy_spex, :step_delay
- Integer, delay in ms between steps:sexy_spex, :speed
- Atom, execution speed (:slow, :normal, :fast, :manual)