Skip to content
Test data generator for Dart
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


Build Status Coverage Status Pub

This project is aimed to bring a test data generator to Dart's ecosystem. This will greatly simplify unit testing and especially Test-Driven Development.

This project is inspired by .NET Autofixture library.

Supported features

  • Effortless primitive types (String, int, double, bool, DateTime, enums) generating.
  • Effortless complex object generating using constructors/factory methods/named constructors (default values usage is customizable).
  • Overriding default generating behavior with custom factories, pinned values defined by user or auto generated.
  • Overriding default generating behavior for specific cases using any object as a key.
  • Lists (and Iterables) generating with customizable size: it is effortless for primitive types and require explicit registration for enums and complex types.
  • Maps of customizable size generating with explicit registration.
  • Support of recursive graphs (trees, linked lists and etc) with customizable recursion level.
  • Generic class instances generating with explicit factory registration.
  • Customization of ctor resolution: first defined, random, random named, random default.
  • Overriding generated parameters values by type and name for cases when random values are not applicable.
  • Creating aliases for inheritor classes


This is my first Dart project and, actually, this is "pet-project". So there are no exact plans and etc. For planned features and more see enhancements on github.

You can’t perform that action at this time.