有没有替代factory_girl 的好方法?
如今,factory_girl 似乎并没有受到太多关注。有更好的选择吗?我真的很喜欢 FG,但我需要知道他们会继续努力。
尤其是factory_girl_rails的缓慢节奏令人恼火。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我个人更喜欢 Fabrication,但那是因为它支持一些不同的 ORM 并且我使用 Mongoid。此外,在我运行的测试中它的速度相当快。
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.
我知道 Machinist,但根据 这篇文章,它与工厂女孩。
I know Machinist but according to this post, it doesn't really differ from Factory Girl.
我喜欢: https://github.com/ginty/cranky
更简单,所以它永远不会中断,不是吗?不需要 -rails gem 并且可以与任何 ORM 一起使用。
I like: https://github.com/ginty/cranky
Much simpler so it never breaks, doesn't need a -rails gem and works with any ORM.