You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This document outlines the specifications for triggering test runs using the Storybook internal API. The test runs can be triggered for individual stories, story files, or groups of stories. Additionally, it covers the cancellation of test runs and watch mode functionality.
Scenarios
Trigger all tests in the test module
Trigger a specific test for a component/story/group in the sidebar
Run tests
Request Payloads
Running Tests
To run tests for a single story, a story file or a group of story the following event is emitted:
To handle responses for test runs, listen to the following events. The payload is a batch response containing information about the progress of the test execution.
The watch mode is currently only triggered globally. Clicking on watch mode should not trigger test runs. To trigger watch mode, emit the following event:
This document outlines the specifications for triggering test runs using the Storybook internal API. The test runs can be triggered for individual stories, story files, or groups of stories. Additionally, it covers the cancellation of test runs and watch mode functionality.
Scenarios
Run tests
Request Payloads
Running Tests
To run tests for a single story, a story file or a group of story the following event is emitted:
Running All Tests Without Filters
To run all tests without any filters, emit the following event:
Response Payloads
Handling Test Run Responses
To handle responses for test runs, listen to the following events. The payload is a batch response containing information about the progress of the test execution.
Cancellation
Triggering a Cancellation Request
To trigger a cancellation request for each registered test provider, emit the following event:
Handling Cancellation Responses
To handle responses for cancellation requests, listen to the following event:
Watch Mode
Triggering Watch Mode
The watch mode is currently only triggered globally. Clicking on watch mode should not trigger test runs. To trigger watch mode, emit the following event:
Types
Provider
TestingModuleRunRequest
TestingModuleRunAllRequest
TestingModuleRunProgressResponsePayload
TestingModuleRunResult
TestingModuleRunAssertionResult
Status
TestingModuleCancelTestRunRequest
TestingModuleCancelTestRunResponse
TestingModuleWatchModeRequest
The text was updated successfully, but these errors were encountered: