orchestrator_test 0.3.1
orchestrator_test: ^0.3.1 copied to clipboard
Testing utilities for Orchestrator framework. Provides mocks, helpers, and custom matchers for easy unit testing of Orchestrator-based code.
0.3.1 - 2025-12-29 #
Fixed #
- Fixed
FakeDispatcher.simulateFailure()to use named arguments forJobFailureEvent.
0.2.0 - 2025-12-29 #
Changed #
- Dependency: Relaxed
testpackage constraint from^1.24.0to>=1.24.0 <2.0.0.- Fixes compatibility issues with
isar_generatorand other packages that depend on differentanalyzerversions.
- Fixes compatibility issues with
- Updated dependency to
orchestrator_core: ^0.4.0.
0.1.1 - 2025-12-27 #
Fixed #
- Improved pub.flutter-io.cn scoring: added documentation field, example, formatted code.
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
0.1.0 - 2025-12-27 #
Added #
- Initial release of
orchestrator_testpackage - Mocks
MockDispatcher- Mocktail mock for DispatcherMockSignalBus- Mocktail mock for SignalBusMockExecutor<T>- Mocktail mock for BaseExecutor
- Fakes
FakeDispatcher- Captures dispatched jobs and simulates eventsFakeSignalBus- Captures emitted events with stream supportFakeCacheProvider- In-memory cache with optional TTL trackingFakeConnectivityProvider- Simulate online/offline statesFakeNetworkQueueStorage- In-memory queue storageFakeExecutor<T>- Captures processed jobs with custom results
- Test Helpers
testOrchestrator- BDD-style orchestrator state testingtestOrchestratorEvents- Test orchestrator event handlingEventCapture- Capture and wait for events
- Event Matchers
isJobSuccess()- Match JobSuccessEventisJobFailure()- Match JobFailureEventisJobProgress()- Match JobProgressEventisJobCancelled()- Match JobCancelledEventisJobTimeout()- Match JobTimeoutEventemitsEventsInOrder()- Match event sequenceemitsEventsContaining()- Match events in any order
- Job Matchers
isJobOfType<T>()- Match job typehasJobId()- Match job IDhasTimeout()- Match job timeouthasCancellationToken()- Match job with tokenhasRetryPolicy()- Match job retry policycontainsJobOfType<T>()- List contains job typehasJobCount<T>()- List has N jobs of type