Skip to content

Generators

Idrees Khan edited this page Apr 18, 2018 · 6 revisions

Ratatool provides support for generating data using ScalaCheck's Gen[T] based on provided schema. Currently Avro, Protobuf, and BigQuery TableRow are supported. Generators are typically used to create input data to property based tests but can be used to generate data for arbitrary purposes. They are also generally useful for filling in Schema which has many fields when you only care about a few.

There are also some Ratatool specific examples on using Avro or TableRow generators with .amend located here

Recommended reading:

Clone this wiki locally