Skip to main content

flutter_resilience_test 0.2.0 copy "flutter_resilience_test: ^0.2.0" to clipboard
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 connectionFailure to simulate offline, timeout, and other transport errors a fixed number of times before succeeding.
  • Add responseSequence to script per-attempt responses, such as 503, then 429, then 200. The last response repeats.
  • Add ScenarioResponse.text for non-JSON bodies, such as HTML gateway pages or deliberately malformed JSON.
  • Add ResilienceAdapter.outcomes and expectOutcomes to assert the ordered results of one route, for example connectionError followed by HTTP 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.
1
likes
160
points
343
downloads

Documentation

API reference

Publisher

verified publisheremloxtech.com

Weekly Downloads

Repeatable Dio failure scenarios, request assertions, and readable timelines for testing Flutter and Dart API recovery.

Repository (GitHub)
View/report issues

Topics

#testing #dio #flutter #resilience

License

MIT (license)

Dependencies

dio

More

Packages that depend on flutter_resilience_test