Build Status codecov Pub Version License ko-fi

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:

Libraries

boolean_provider
date_time_provider
double_provider
integer_provider
model_mixer
model_mixer_exception
model_provider
provider
random_provider
string_provider