paint-brush
Build Dummy Data with Relationshipsby@maxstackhouse
1,076 reads
1,076 reads

Build Dummy Data with Relationships

by Max StackhouseDecember 21st, 2017
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

We’ve all been there. You’re building a rails app that has a large dataset and you plan for the app to run analytics on the <a href="https://hackernoon.com/tagged/dataset" target="_blank">dataset</a>. If you’re following the Test Driven <a href="https://hackernoon.com/tagged/design" target="_blank">Design</a> (TDD) model then you’re going to need to test your analytics methods. The problem is, your dataset is too large to upload in your test suite. You could always copy the first 500 or so lines for a test fixture, but that always ends up producing weird results. What you really need is a little more control over what that test dataset looks like. Let’s start with an example:
featured image - Build Dummy Data with Relationships
Max Stackhouse HackerNoon profile picture
Max Stackhouse

Max Stackhouse

@maxstackhouse

L O A D I N G
. . . comments & more!

About Author

Max Stackhouse HackerNoon profile picture
Max Stackhouse@maxstackhouse

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite