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
mocktail

Dart mock library with null safety support and no manual mocks or code generation.

pub.devRemove
ScoresHealth5084 (best)
Maintenance1761 (best)
Quality91100 (best)
Popularity8695 (best)
Community8080
Compatibility85100 (best)
UsageDownloads (30 days)411k4M (best)
Likes1851.2k (best)
Pub points140 / 160160 / 160 (best)
GitHub stars69702 (best)
MaintenanceLatest release0.6.1, 3 years ago1.0.5, 7 months ago (best)
Major versions in 12 months00
Contributors1921 (best)
Publisherlomsa.comfelangel.dev
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyNoYes
KindPure DartPure Dart
Code generationNoYes
Direct dependencies43 (best)
LicenseMITMIT
Setup effortLowLow
JudgementStrengths
  • Simple to use for mocking Dio requests in tests
  • Supports declarative request-response mocking
  • Includes features like response delays and exact body checks
  • No code generation or manual mocks required.
  • Familiar API inspired by mockito.
  • Supports argument matchers and fallback values.
Weaknesses
  • Strictly tied to the Dio package
  • Limited to testing use cases
  • Cannot directly stub or verify extension methods.
  • Requires registering fallback values for custom types when using argument matchers.
WarningsNoneNone
http_mock_adapter vs mocktail: which Flutter package should you use? | pubscout