Cover Image for Fast Tests, Clear Datasets with Oaken: for fixtures + factories + seeds.
Cover Image for Fast Tests, Clear Datasets with Oaken: for fixtures + factories + seeds.
Avatar for kaspth
Presented by
kaspth
Rails Deep-Dive & Riffing
58 Going

Fast Tests, Clear Datasets with Oaken: for fixtures + factories + seeds.

Zoom
Registration
Welcome! To join the event, please register below.
About Event

Remember tests being fast? lol

Your factories may have started easy, but now they're painful for your growing team.

What about fixtures, could they save you? Well, they're fast, but they're also a hot mess your team will hate.

This was my experience working with both!

Your app needs a stable dataset to work with, even in db/seeds.rb.

Join this talk to see why & how my gem Oaken makes it easy.

What's Oaken done for people?

One app saw a 3x speedup in their tests over their factory based setup.

Another shaved off 5min on their CI build with a day's worth of work.

But seriously; Oaken is one of the single greatest tools I've added to my belt in the past year

It's made cross-environment shared data, data prepping for demos, edge-case tests, and overall development much more reliable & shareable across a team

- Thomas Cannon, @tcannonfodder

What we'll cover

I'll use a demo Rails app to show you:

  • What I see teams struggling with when using factories

  • How fixtures don't fix it (lol)

  • What Oaken brings to the table, and how to make the most of it

  • How to adopt Oaken incrementally (you can still use factories too)

  • Oaken's only 265 lines of code, so I'll show you the internals and how it's designed to be lightweight!

I'm not sure how long we'll go, we'll play it by ear.

We're recording the call

I'll record the call and put it up on YouTube afterwards. I'll send the link in an email some time after the call.

You're welcome to be on audio/video, but there's no pressure to do so. You can post questions in the chat just as well.

Want to adopt Oaken in your app? I can help!

I'm pretty happy with Oaken and where it's headed, I think it's ready for a lot more teams to use.

I do approachable expert Rails consulting and I'm happy to help you integrate Oaken, if you're interested. There's both async and sync options, I'm happy to play it by ear and see what works for both of us.

You can find me on https://kaspth.com

Avatar for kaspth
Presented by
kaspth
Rails Deep-Dive & Riffing
58 Going