models/ensemble_test_models library

Declarative test document and run results.

Classes

EnsembleSingleTestResult
Result for one executed declarative test case. Result and diagnostics for one expanded test case run.
EnsembleTestCase
Parsed definition of a single declarative test case.
EnsembleTestConfig
Suite-wide configuration loaded from tests/config.yaml.
EnsembleTestEnvironment
Environment overrides applied to a test run.
EnsembleTestReportDetails
Human-readable run metadata for console reports (see TestReporter).
EnsembleTestRunRequest
Request object describing an Ensemble test run.
EnsembleTestRunResult
Aggregate result for a test run. Aggregate result for one complete runner invocation.
LogApiCallsConfig
Controls writing the per-test API call log artifact.
LogStorageConfig
Controls writing the final local storage snapshot to an artifact.
MockAPIResponse
Mock API response returned by the test HTTP provider. A deterministic API response used by the test provider.
PerformanceConfig
Controls suite-level application performance logging.
ScreenshotConfig
Controls automatic per-step screenshot capture and filtering.
TestDeviceTarget
One device (+ optional locale/theme) in a suite run matrix.
TestFailureDetails
TestMocks
Mock configuration attached to a test case. API mocks attached to a test after profile and suite composition.
TestProfile
A named profile containing reusable mocks and initial state.
TestScenario
One scenario from a scenario-based test suite.
TestServiceConfig
A local process that the runner starts before executing tests.
TestStep
Single executable step from a declarative test file.
TimerRewriteConfig
Controls timer normalization used by the Flutter test host.
WifiTestConfig
Suite Wi-Fi test double settings from tests/config.yaml.

Enums

ExecutionMode
Host environment used to execute a declarative test suite.
TestFailureKind
TestStatus
Status of a finished test case. Final status of an executed test case.

Functions

flattenTestSteps(Iterable<TestStep> steps) → List<TestStep>
Flattens authored steps in the same pre-order used by report outlines and compiled plan step boundaries. Control rows are included so nested step indexes remain stable even when a branch is skipped.

Exceptions / Errors

EnsembleTestFailure
Thrown when a test step or assertion fails. Exception used for user-facing test and assertion failures.