Before All

Overview

The Before All Component initializes the test suite by sending signals to all test components in the flow, allowing them to reset their state before execution begins.

Usage

This component ensures that all test-related components are in a clean state before running a test workflow, preventing unexpected results due to lingering state data.

Input Ports

Port
Description

in

Receives the trigger signal to start the test workflow.

Output Ports

Port
Description

out

Emits a signal after all test components have acknowledged the reset.

Processing Logic

  1. Receives Test Trigger: Captures the initial test signal.

  2. Sends Reset Signal: Notifies all connected test components to reset their state.

  3. Waits for Acknowledgment: Ensures all components respond before proceeding.

  4. Outputs Start Signal: Once all components confirm reset, it emits a signal to start the test flow.

Notes

  • Ensures Clean Test Execution: Resets all test-related components before execution.

  • Prevents State Issues: Avoids leftover data affecting test results.

  • Works with Other Test Components: Required in workflows utilizing components like AfterAll or Assert.

This component is essential for structuring test workflows by ensuring that every test begins in a predictable and controlled environment.

Last updated