Is there a good alternative to factory_girl?
Asked Answered
T

3

6

It doesn't really seem like factory_girl receives much attention these days. Is there a better alternative? I really like FG, but I need to know that they'll keep working on it.

Particularly the slow pace of factory_girl_rails is annoying.

Twicetold answered 23/5, 2011 at 21:10 Comment(2)
What do you need from factory_girl that it doesn't already provide?Verina
I don't know if by "slow pace" OP was referring to how long it takes to load FG compared to fixtures. That's certainly something I find annoying, though. I can't just run rake:tasks and get a 2 second result, so I have to be more careful about making small changes and testing them.Repine
F
10

I personally prefer Fabrication, but that's because it supports a few different ORMs and I use Mongoid. Also, it's been pretty fast in the tests I run.

Formation answered 23/5, 2011 at 22:54 Comment(0)
G
3

I know Machinist but according to this post, it doesn't really differ from Factory Girl.

Genocide answered 23/5, 2011 at 21:13 Comment(0)
H
3

I like: https://github.com/ginty/cranky

Much simpler so it never breaks, doesn't need a -rails gem and works with any ORM.

Headwater answered 7/6, 2013 at 21:30 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.