flutter_resilience_test 0.2.0
flutter_resilience_test: ^0.2.0 copied to clipboard
Repeatable Dio failure scenarios, request assertions, and readable timelines for testing Flutter and Dart API recovery.
0.2.0 #
- Add
connectionFailureto simulate offline, timeout, and other transport errors a fixed number of times before succeeding. - Add
responseSequenceto script per-attempt responses, such as 503, then 429, then 200. The last response repeats. - Add
ScenarioResponse.textfor non-JSON bodies, such as HTML gateway pages or deliberately malformed JSON. - Add
ResilienceAdapter.outcomesandexpectOutcomesto assert the ordered results of one route, for exampleconnectionErrorfollowed byHTTP 200.
0.1.0 #
- Add an in-memory Dio transport with explicit routes and no network fallback.
- Add a concurrent token refresh scenario with a deterministic initial barrier.
- Add transient HTTP failures, held responses, and synchronization gates.
- Add request-count assertions and readable transport event reports.
- Handle cancellation and forced adapter shutdown.
- Include runnable authentication example, regression tests, and Dart CI workflow.
- Add a Flutter example app with five interactive scenarios and transport reports.
- Add shared widget/device integration flows, responsive layout and disposal tests.