test-double-guide
http-mock-adapter
test-double-guide | http-mock-adapter | |
---|---|---|
1 | 2 | |
0 | 62 | |
- | - | |
3.5 | 6.0 | |
11 months ago | 6 months ago | |
Dart | ||
- | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
test-double-guide
-
Differences between various test doubles in software testing
So I’ve created a guide on the differences between mocks, spies, stubs, fakes, and dummies. Could you have a look at it and tell me what you think? If you also filled out the questionnaire at the end, I’d greatly appreciate it!
http-mock-adapter
-
How to actually do TDD in Flutter
In this example, the app uses Firebase Auth. Because this is an external dependency, we're going to use a test double which mimics the behaviour of the real FirebaseAuth implementation. If you were using a different authentication system which worked over HTTP requests, you could use something like http_mock_adapter to fake your API responses.
-
Simulating HTTP request/response workflow for effective testing in Dart/Flutter via http-mock-adapter
We hope that you give http-mock-adapter a shot! If you find it useful, please 👍 the package, spread the word, and reach out to us at the issues' section if you encounter a bug or think of an awesome feature to improve the package!
What are some alternatives?
flutter_convenient_test - Write and debug tests easily, with full action history, time travel, screenshots, rapid re-execution, video records, interactivity, isolation and more
flutter_sliding_tutorial - User onboarding library with smooth animation of objects and background colors
fpdart - Functional programming in Dart and Flutter. All the main functional programming types and patterns fully documented, tested, and with examples.
flutter_dynamic_forms - A collection of flutter and dart libraries allowing you to consume complex external forms at runtime.
cubit - Cubit is a lightweight state management solution. It is a subset of the bloc package that does not rely on events and instead uses methods to emit new states.
hurl - Hurl, run and test HTTP requests with plain text.
very_good_cli - A Very Good Command-Line Interface for Dart created by Very Good Ventures 🦄
theme_tailor - Code generator for Flutter's theme extension classes.
riverpod - A reactive caching and data-binding framework. Riverpod makes working with asynchronous code a breeze.
http_pagination - Parses a link header (web links) and returns pagination data
diox - A powerful HTTP package for Dart/Flutter, which supports Global settings, Interceptors, FormData, Aborting and canceling a request, Files uploading and downloading, Requests timeout, Custom adapters, etc.