activatory 0.0.17 activatory: ^0.0.17 copied to clipboard
Test data generator aimed to simplify Test-Driven Development with Dart
Activatory #
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 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.
- 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.
Roadmap #
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.