PackageTrack
Sign in Get early access

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 2023
2021 2022 2023 2024 2025 2026
Release Pre-release

Releases

latest 20
  1. 0.6.1 23 Nov 2023
    Release notes
    • Fixes http-mock-adapter compatibility with flutter 3.16.0 #164 (@willckoan)
    Open source →
    Release notes
    • Fixed
      • Fix: Library not compatible with flutter 3.16.0 - incorrect type definition
    Open source →
  2. 0.6.0 30 Aug 2023
    Release notes

    [v0.6.0] (2023-08-30)

    • Add
      • #136: Next interceptor handler on DioInterceptor for missing mocks
      • #149: Exact body check option for FullHttpRequestMatcher
      • #153 #156: (async)callback
    • Fixed
      • #160: Downgrade collection to 1.17.1 due to incompability;

    Special thanks to sebastianbuechler

    Open source →
    Release notes
    • Add
      • #136: Next interceptor handler on DioInterceptor for missing mocks
      • #149: Exact body check option for FullHttpRequestMatcher
      • #153 #156: (async)callback
    • Fixed
      • #160: Downgrade collection to 1.17.1 due to incompability;

    Special thanks to sebastianbuechler

    Open source →
  3. 0.5.0 17 Aug 2023
    Release notes

    bump up versions:

    BREAKING CHANGE:
    #155

    • sdk: >=3.0.0
    • collection: ^1.18.0
    • dio: ^5.3.2
    Open source →
    Release notes
    • Updated
      • Bump up sdk and dependency versions:
        • sdk: >=3.0.0
        • collection: ^1.18.0
        • dio: ^5.3.2
    Open source →
  4. 0.4.4 03 May 2023
    Release notes
    Open source →
    Release notes
    • Updated
      • Fix: remove unused import dart:ffi
    Open source →
  5. 0.4.2 15 Feb 2023
    Release notes Open source →
    Release notes
    • Updated
      • Downgrade dependency constraints to match minimum dio requirements
    Open source →
  6. 0.4.1 15 Feb 2023
    Release notes Open source →
    Release notes
    • Updated
      • Downgrade collection to 1.15.0 due to incompability (issue #141)
      • Update package homepage
    Open source →
  7. 0.4.0 14 Feb 2023
    Release notes Open source →
    Release notes
    • Updated

      • Dio dependency to 5.0.0
      • Github Workflow (release on tag)
      • Codecov token
      • Collection to 1.17.1
    • Removed

      • Recursive export of matchers.dart
      • Unnecessary ListParam
    Open source →
  8. 0.3.3 07 Jun 2022
    Release notes

    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`.

    Open source →
    Release notes
    • Added

      • delay property to MockServer methods: (reply & throws)
      • HttpRequestMatcher super class & its implementations FullHttpRequestMatcher, UrlRequestMatcher.
      • Utilities file for tests.
    • Updated

      • Docs in README.md and example/main.dart.
      • Tests for DioAdapter.
    Open source →
  9. 0.3.2 26 Jul 2021
    Release notes

    Version 0.3.2 of the package

    Open source →
    Release notes
    • Added

      • Automatic wrapping of FormData in a fitting matcher.
    • Fixed

      • Missing expectation in map not causing test failures.
    • Removed

      • Header matcher.
    • Updated

      • Tests for DioAdapter and DioInterceptor by combining them.
    Open source →
  10. 0.3.1 16 Jun 2021
    Release notes
    • Removed

      • Unused import and code regarding io_adapter that reduced the overall score of the package.
    • Updated

      • pub badge link in README.md.
    Open source →
  11. 0.3.0 16 Jun 2021
    Release notes
    • Added

      • Remaining tests for formal 100% coverage;
      • Code coverage badge;
      • New, official Dart linter (lints) and some custom rules;
      • Constructors to DioAdapter and DioInterceptor;
      • ClosedException, thrown when DioAdapter is closed yet used;
      • Builder method for Signature extension.
    • Removed

      • Unused package and code, such as mockito and/or DioAdapterMockito;
      • Some portion of seemingly excessive documentation;
      • Generally unnecessary pieces of code.
    • Updated

      • Tests and lots of files due to refactoring;
      • Packages;
      • Names of types, methods and variables for better clarity.
    Open source →
  12. 0.2.1 02 Apr 2021
    Release notes
    • Removed

      • Unused and artificially deprecated code.
    • Updated

      • CI workflow;
      • Packages.
    Open source →
  13. 0.2.0 02 Apr 2021
    Release notes
    • Added
      • Null safety.
    Open source →
  14. 0.1.6 31 Mar 2021
    Release notes
    • Added

      • Ability to match routes based on pattern;
      • Tests;
      • Straightforward way to reset history;
      • Query parameters to RequestRouted's methods.
    • Fixed

      • Response problems regarding closed streams.
    • Removed

      • Singleton instances of DioAdapter and DioInterceptor;
    • Updated

      • Match variable names;
      • matches function to include null check;
      • .gitignore now includes pubspec.lock;
      • Request mock method chaining variation.

    Open source →
  15. 0.1.5 09 Jan 2021
    Release notes
    • Added

      • Matchers class that contains various types of request data matchers for dynamic signature matching;
      • Dart CI workflow;
      • git tags for untagged releases/publications;
      • Specific imports by utilizing Dart's show keyword.
    • Removed

      • Unnecessary node_modules/ directory with its content;
      • Unnecessary workflows/ directory with its content in .github/ISSUE_TEMPLATE/ directory;
      • Unnecessary package-lock.json file;
      • Unnecessary .metadata file.
    • Updated

      • Issue templates;
      • Pull request template;
      • example/main.dart code;
      • Source code formatting/style;
      • Source code documentation;
      • License's Copyright (c) year;
      • http and test dev_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.

    Open source →
  16. 0.1.4 28 Dec 2020
    Release notes
    • Added

      • throws method to test Dio exceptions.
    • Fixed

      • Signature related bug.
    • Updated

      • Package architecture.

    Open source →
  17. 0.1.3 04 Dec 2020
    Release notes
    • Updated
      • Package's documentation;
      • Request handling through headers.

    Open source →
  18. 0.1.2 26 Nov 2020
    Release notes
    • Updated
      • GitHub Actions workflow upon each version update on each push made to main branch.

    Open source →
  19. 0.1.1 23 Nov 2020
    Release notes
    • Added

      • Author metadata;
      • Automatic publishing on https://pub.dev through GitHub Actions.
    • Updated

      • Routing logic;
      • Package documentation.

    Open source →
  20. 0.1.0 20 Nov 2020
    Release notes
    • Added

      • History mixin 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;
      • DioAdapter without 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).

    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive