Skip to content
pubscout

Compare

The strongest value in each row is marked.

Attributebuild_test

Utilities for unit testing Dart build_runner builders in memory

pub.devRemove
mocktailx

Utility functions for the mocktail library to increase productivity in tests.

pub.devRemove
ScoresHealth78 (best)41
Maintenance87 (best)1
Quality7681 (best)
Popularity59 (best)38
Community80 (best)11
Compatibility85100 (best)
UsageDownloads (30 days)287k (best)6.6k
Likes1113 (best)
Pub points140 / 160150 / 160 (best)
GitHub stars872 (best)5
MaintenanceLatest release3.5.23, 5 weeks ago (best)0.0.7, 3 years ago
Major versions in 12 months00
Contributors100+ (best)2
Publishertools.dart.devUnverified
FitPlatformsAll (pure Dart)All (pure Dart)
WASM-readyNoYes
KindPure DartPure Dart
Code generationYesNo
Direct dependencies151 (best)
LicenseBSD-3-CLAUSEBSD-3-CLAUSE
Setup effortLowLow
JudgementStrengths
  • Runs builds entirely in memory, fast and isolated
  • Supports real source files via TestReaderWriter
  • Built-in helpers for resolving source code with analyzer
  • Easy to read generated assets as strings
  • Reduces boilerplate code for common stubbing patterns like void functions and streams.
  • Provides convenient ordered return and answer sequences.
  • Exports mocktail so you do not need to import both packages.
Weaknesses
  • Only works with build_runner; not for general code generation
  • Requires Dart 3.11+ and specific build_runner versions
  • Limited to builder testing, not general utilities
  • Dependent on the mocktail package and its version updates.
  • Very narrow scope focused only on syntax sugar for mocktail.
WarningsNoneNone
build_test vs mocktailx: which Flutter package should you use? | pubscout