model_mixer 0.1.1 model_mixer: ^0.1.1 copied to clipboard
Model Mixer is a library to automate model generation for automated tests.
Model Mixer #
Model Mixer is a library to automate model generation for automated testing:
- unit
- integration
- etc.
Getting Started #
Define you model:
class TestObject {
TestObject(
this.stringValue,
this.intValue,
this.doubleValue,
this.booleanValue,
this.dateTimeValue,
);
final String stringValue;
final int intValue;
final double doubleValue;
final bool booleanValue;
final DateTime dateTimeValue;
}
Auto generate models for testing:
final TestObject testObject = modelMixer.build(TestObject);
Supported Types #
Model Mixer currently supports the auto generation for the following types:
- bool
- double
- DateTime
- int
- String
Inspiration #
Model Mixer was inspired from Fritter Factory, another great model generator for java and Android: