FindSoftware

factory_bot

Ruby library for defining factories that build test data objects, a replacement for fixtures.

factory_bot is a Ruby library for defining factories, which build test objects from one definition with several build strategies: saved, unsaved, attribute hashes and stubs. It is installed as a gem, and its reference is a book published on GitHub Pages. Rails and RSpec are supported through separate integrations that the README points to.

Worth knowing

The getting-started guide in the repository is marked deprecated.

Identity

Status
Active
Maintainer
thoughtbot, inc.3
First release
20084

Rendering and deploy

Install with
gem install5

Releases

Current major version
67
Last release
2026-05-047

Adoption

GitHub stars
8,1662
Contributors
2618
Dependent repositories
58,1939
Dependent packages
5209

Why these figures do not compare

Sources

  1. 2026-11-08: links
    thoughtbot.github.io/factory_bot/
  2. 2026-11-08: links, Categories, Written in, License, GitHub stars
    api.github.com/repos/thoughtbot/factory_bot
  3. 2026-11-08: Maintainer
    github.com/thoughtbot/factory_bot/blob/main/LICENSE
  4. 2026-11-08: First release
    api.github.com/repos/thoughtbot/factory_bot/commits/0a6a54c6b95112e0bc5a691d9e1ef2a684a3cec5
  5. 2026-11-08: Runtime, Install with
    github.com/thoughtbot/factory_bot/blob/main/README.md
  6. 2026-11-08: Minimum runtime
    github.com/thoughtbot/factory_bot/blob/v6.6.0/factory_bot.gemspec
  7. 2026-11-08: Current major version, Last release
    api.github.com/repos/thoughtbot/factory_bot/releases/latest
  8. 2026-11-08: Contributors
    api.github.com/repos/thoughtbot/factory_bot/contributors?per_page=1
  9. 2026-11-08: Dependent packages, Dependent repositories
    packages.ecosyste.ms/api/v1/registries/rubygems.org/packages/factory_bot

Last reviewed · Listed since Edit on GitHubThis page as markdownas JSON