Creating data for testing


I’ve a couple of types, canonicals and transforms.
The types are tightly connected making very complicated to create instances for testing.

Is it possible to use the canonicals and transforms to create instances by providing a collection of raw CSV lines?

E.g. if I’ve SomeType.c3typ, CanonicalSomeType.c3typ and TransformCanonicalSomeTypeToSomeType.c3typ, I want to be able to do something like this:

var lines = ['col1,col2,col3', 'val11,val12,val13', 'val21,val22,val23', 'val31,val32,val33'];


SomeType.fetch(); // should give me 3 instances of 'SomeType'