Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributehttp_mock_adapter

A simple to use mocking package for Dio intended to be used in tests.

pub.devRemove
mockito

A mock framework inspired by Mockito with APIs for Fakes, Mocks, behavior verification, and stubbing.

pub.devRemove
ScoresHealth5087 (best)
Maintenance1780 (best)
Quality91 (best)87
Popularity8695 (best)
Community8080
Compatibility85100 (best)
UsageDownloads (30 days)411k2.8M (best)
Likes1851.5k (best)
Pub points140 / 160 (best)130 / 160
GitHub stars69871 (best)
MaintenanceLatest release0.6.1, 3 years ago5.8.1, 4 months ago (best)
Major versions in 12 months00
Contributors19100+ (best)
Publisherlomsa.comdart.dev
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyNoYes
KindPure DartPure Dart
Code generationNoYes
Direct dependencies4 (best)10
LicenseMITAPACHE-2.0
Setup effortLowMedium
JudgementStrengths
  • Simple to use for mocking Dio requests in tests
  • Supports declarative request-response mocking
  • Includes features like response delays and exact body checks
  • Robust behavior verification and stubbing features.
  • Supports null safety and generates nice mocks to avoid runtime type exceptions.
Weaknesses
  • Strictly tied to the Dio package
  • Limited to testing use cases
  • Requires running build_runner for code generation.
  • Has an awkward syntax requirement for naming arguments within argument matchers.
WarningsNoneNone
http_mock_adapter vs mockito: which Flutter package should you use? | pubscout