http_mock_adapter
A simple to use mocking package for Dio intended to be used in tests. It provides various types and methods to declaratively mock request-response communication.
0.6.1
285K downloads/mo
#710 most downloaded on pub.dev
lomsa-dev/http-mock-adapter
What this package is like to depend on
Last release 3 years ago
no release in 18 months
Release timing varies
gaps range from 2 weeks to 11 months
Nearly every release is documented
notes for 20 of 20 stable releases
Nothing withdrawn
no release was ever pulled
6 years old
20 releases · first in 2020
0 releases in the last 12 months
see the full history below
Release timeline
20 releases · Nov 2020 to Nov 2023Releases
latest 20-
0.6.123 Nov 2023Release notes
Open source →- Fixes http-mock-adapter compatibility with flutter 3.16.0 #164 (@willckoan)
Release notes
Open source →- Fixed
- Fix: Library not compatible with flutter 3.16.0 - incorrect type definition
-
0.6.030 Aug 2023Release notes
Open source →[v0.6.0] (2023-08-30)
- Add
- Fixed
- #160: Downgrade collection to 1.17.1 due to incompability;
Special thanks to sebastianbuechler
Release notes
Open source →- Add
- Fixed
- #160: Downgrade collection to 1.17.1 due to incompability;
Special thanks to sebastianbuechler
-
0.5.017 Aug 2023Release notes
Open source →Release notes
Open source →- Updated
- Bump up sdk and dependency versions:
- sdk: >=3.0.0
- collection: ^1.18.0
- dio: ^5.3.2
- Bump up sdk and dependency versions:
- Updated
-
0.4.403 May 2023 -
0.4.215 Feb 2023Release notes
Open source →Release notes
Open source →- Updated
- Downgrade dependency constraints to match minimum
diorequirements
- Downgrade dependency constraints to match minimum
- Updated
-
0.4.115 Feb 2023Release notes
Open source →- Updated
- Downgrade collection to 1.15.0 due to incompability (issue #141)
- Update package homepage
- Updated
-
0.4.014 Feb 2023Release notes
Open source →Release notes
Open source →-
Updated
- Dio dependency to
5.0.0 - Github Workflow (release on tag)
- Codecov token
- Collection to 1.17.1
- Dio dependency to
-
Removed
- Recursive export of matchers.dart
- Unnecessary ListParam
-
-
0.3.307 Jun 2022Release notes
Open source →Update to v0.3.3 (#128)
- Added v0.0.3 changelog data to `CHANGELOG.md`.
- Updated version of library in `pubspec.yaml`.
- Updated version of library in `README.md`.Release notes
Open source →-
Added
delayproperty toMockServermethods: (reply & throws)HttpRequestMatchersuper class & its implementationsFullHttpRequestMatcher,UrlRequestMatcher.- Utilities file for tests.
-
Updated
- Docs in
README.mdandexample/main.dart. - Tests for
DioAdapter.
- Docs in
-
-
0.3.226 Jul 2021Release notes
Open source →-
Added
- Automatic wrapping of
FormDatain a fitting matcher.
- Automatic wrapping of
-
Fixed
- Missing expectation in map not causing test failures.
-
Removed
- Header matcher.
-
Updated
- Tests for
DioAdapterandDioInterceptorby combining them.
- Tests for
-
-
0.3.116 Jun 2021Release notes
Open source →-
Removed
- Unused import and code regarding
io_adapterthat reduced the overall score of the package.
- Unused import and code regarding
-
Updated
pubbadge link inREADME.md.
-
-
0.3.016 Jun 2021Release notes
Open source →-
Added
- Remaining tests for formal 100% coverage;
- Code coverage badge;
- New, official Dart linter (
lints) and some custom rules; - Constructors to
DioAdapterandDioInterceptor; ClosedException, thrown whenDioAdapteris closed yet used;- Builder method for
Signatureextension.
-
Removed
- Unused package and code, such as
mockitoand/orDioAdapterMockito; - Some portion of seemingly excessive documentation;
- Generally unnecessary pieces of code.
- Unused package and code, such as
-
Updated
- Tests and lots of files due to refactoring;
- Packages;
- Names of types, methods and variables for better clarity.
-
-
0.2.102 Apr 2021Release notes
Open source →-
Removed
- Unused and artificially deprecated code.
-
Updated
- CI workflow;
- Packages.
-
-
0.2.002 Apr 2021 -
0.1.631 Mar 2021Release notes
Open source →-
Added
- Ability to match routes based on pattern;
- Tests;
- Straightforward way to reset history;
- Query parameters to
RequestRouted's methods.
-
Fixed
Responseproblems regarding closed streams.
-
Removed
- Singleton instances of
DioAdapterandDioInterceptor;
- Singleton instances of
-
Updated
Matchvariable names;matchesfunction to include null check;.gitignorenow includespubspec.lock;- Request mock method chaining variation.
-
-
0.1.509 Jan 2021Release notes
Open source →-
Added
Matchersclass that contains various types of request data matchers for dynamic signature matching;Dart CIworkflow;gittags for untagged releases/publications;- Specific imports by utilizing
Dart'sshowkeyword.
-
Removed
- Unnecessary
node_modules/directory with its content; - Unnecessary
workflows/directory with its content in.github/ISSUE_TEMPLATE/directory; - Unnecessary
package-lock.jsonfile; - Unnecessary
.metadatafile.
- Unnecessary
-
Updated
- Issue templates;
- Pull request template;
example/main.dartcode;- Source code formatting/style;
- Source code documentation;
- License's
Copyright (c)year; httpandtestdev_dependencies' version;- Header setting logic for both request and response (Defaults to JSON and matches any
Headers.contentTypeLength); - Project's meta files;
- Tests by relocating, reformatting, organizing them.
-
-
0.1.428 Dec 2020Release notes
Open source →-
Added
throwsmethod to testDioexceptions.
-
Fixed
Signaturerelated bug.
-
Updated
- Package architecture.
-
-
0.1.304 Dec 2020 -
0.1.226 Nov 2020Release notes
Open source →- Updated
GitHub Actionsworkflow upon each version update on each push made tomainbranch.
- Updated
-
0.1.123 Nov 2020Release notes
Open source →-
Added
- Author metadata;
- Automatic publishing on https://pub.dev through
GitHub Actions.
-
Updated
- Routing logic;
- Package documentation.
-
-
0.1.020 Nov 2020Release notes
Open source →-
Added
Historymixin to keep track of request history;- HTTP methods;
RequestRouted- exposes developer-friendly methods which take in routes;RequestHandler- The handler of requests sent by clients;DioAdapterwithout mockito;- Mocked version of
DioAdapter; - Tast cases;
- Non-sequential responding.
-
Removed
MockHandler- Temporarily deprecated (ensures that mock data is saved and retrieved from the disk).
-