Sunday, February 19, 2017

Introducing Test Pantry

Links to this post

On two recent Javascript projects, we needed good tools for building test data. I'm used to Thoughtbot's Factory Girl for Ruby, but didn't find the equivalent. There are several around, but the syntax is picky, and it didn't seem like they offered enough advantages over going it alone. In Javascript, because of the nice object literal format, it's pretty easy to just hard-code yourself, and that must be what most people do. But having a few tools to make it easier really helps, so I created Test Pantry.