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.
- Effortless primitive types (String, int, double, bool, DateTime, enums) generating.
- Effortless complex object generating using constructors/factory methods/named constructors (default values for arguments are preferred).
- 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.
- Arrays generating with customizable size: it is effortless for primitive types and require explicit registration for enums and complex types.
- 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: random, first, random named, factory, default.
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.
- Test data generator for Dart. Create instance of activatory and use get method to gather test object. Any required parameters will be substituted automatically and recursively. For more information see https://github.com/syberside/Activatory/blob/master/README.md