http_miracle_mock 0.0.4 copy "http_miracle_mock: ^0.0.4" to clipboard
http_miracle_mock: ^0.0.4 copied to clipboard

Designed for Flutter unit testing, this library allows for easy mocking/intercepting of network requests and images within business logic.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add http_miracle_mock

With Flutter:

 $ flutter pub add http_miracle_mock

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  http_miracle_mock: ^0.0.4

Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:http_miracle_mock/http_miracle_mock.dart';
2
likes
160
points
289
downloads

Publisher

unverified uploader

Weekly Downloads

Designed for Flutter unit testing, this library allows for easy mocking/intercepting of network requests and images within business logic.

Repository (GitHub)

Topics

#testing #network #mock #intercept #dio

Documentation

API reference

License

MIT (license)

Dependencies

mockito, path

More

Packages that depend on http_miracle_mock