{"id":13400460,"url":"https://github.com/thoughtbot/factory_bot","last_synced_at":"2026-04-13T06:12:14.771Z","repository":{"id":403383,"uuid":"21829","full_name":"thoughtbot/factory_bot","owner":"thoughtbot","description":"A library for setting up Ruby objects as test data.","archived":false,"fork":false,"pushed_at":"2025-04-02T13:50:48.000Z","size":3317,"stargazers_count":7990,"open_issues_count":85,"forks_count":2591,"subscribers_count":127,"default_branch":"main","last_synced_at":"2025-05-05T09:41:37.532Z","etag":null,"topics":["factories","factory-bot","factory-girl","fixtures","rails","ruby","rubygems","testing","thoughtbot"],"latest_commit_sha":null,"homepage":"https://thoughtbot.com","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thoughtbot.png","metadata":{"files":{"readme":"README.md","changelog":"NEWS.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"thoughtbot"}},"created_at":"2008-06-03T13:55:37.000Z","updated_at":"2025-05-02T19:17:09.000Z","dependencies_parsed_at":"2023-07-05T21:16:18.847Z","dependency_job_id":"b4eb1e1f-c568-426e-975d-654282876df3","html_url":"https://github.com/thoughtbot/factory_bot","commit_stats":{"total_commits":1237,"total_committers":298,"mean_commits":4.151006711409396,"dds":0.6653193209377526,"last_synced_commit":"59b7188c7ed156433bd6ed1cd61da4be2966bd11"},"previous_names":["thoughtbot/factory_girl"],"tags_count":103,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thoughtbot%2Ffactory_bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thoughtbot%2Ffactory_bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thoughtbot%2Ffactory_bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thoughtbot%2Ffactory_bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thoughtbot","download_url":"https://codeload.github.com/thoughtbot/factory_bot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252524387,"owners_count":21762085,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["factories","factory-bot","factory-girl","fixtures","rails","ruby","rubygems","testing","thoughtbot"],"created_at":"2024-07-30T19:00:52.272Z","updated_at":"2026-04-13T06:12:14.764Z","avatar_url":"https://github.com/thoughtbot.png","language":"Ruby","readme":"# factory_bot \n\n[![Build Status][ci-image]][ci] [![Gem Version][version-image]][version]\n\nfactory_bot is a fixtures replacement with a straightforward definition syntax, support for multiple build strategies (saved instances, unsaved instances, attribute hashes, and stubbed objects), and support for multiple factories for the same class (user, admin_user, and so on), including factory inheritance.\n\nIf you want to use factory_bot with Rails, see\n[factory_bot_rails](https://github.com/thoughtbot/factory_bot_rails).\n\nInterested in the history of the project name? You can find the history [here](https://github.com/thoughtbot/factory_bot/blob/main/NAME.md)\n\nTransitioning from factory\\_girl? Check out the [upgrade guide](https://github.com/thoughtbot/factory_bot/blob/v4.9.0/UPGRADE_FROM_FACTORY_GIRL.md).\n\n## Documentation\n\nSee our extensive reference, guides, and cookbook in [the factory_bot book][].\n\nFor information on integrations with third party libraries, such as RSpec or\nRails, see [the factory_bot wiki][].\n\n We also have [a detailed introductory video][], available for free on Upcase.\n\n[a detailed introductory video]: https://upcase.com/videos/factory-bot?utm_source=github\u0026utm_medium=open-source\u0026utm_campaign=factory-girl\n[the factory_bot book]: https://thoughtbot.github.io/factory_bot\n[the factory_bot wiki]: https://github.com/thoughtbot/factory_bot/wiki\n\n## Install\n\nRun:\n\n```ruby\nbundle add factory_bot\n```\n\nTo install the gem manually from your shell, run:\n\n```shell\ngem install factory_bot\n```\n\n## Supported Ruby versions\n\nSupported Ruby versions are listed in `.github/workflows/build.yml` ([source](https://github.com/thoughtbot/factory_bot/blob/main/.github/workflows/build.yml))\n\n## More Information\n\n* [Rubygems](https://rubygems.org/gems/factory_bot)\n* [Stack Overflow](https://stackoverflow.com/questions/tagged/factory-bot)\n* [Issues](https://github.com/thoughtbot/factory_bot/issues)\n* [GIANT ROBOTS SMASHING INTO OTHER GIANT ROBOTS](https://robots.thoughtbot.com/)\n\n[GETTING_STARTED]: https://github.com/thoughtbot/factory_bot/blob/main/GETTING_STARTED.md\n\n## Useful Tools\n\n* [FactoryTrace](https://github.com/djezzzl/factory_trace) - helps to find unused factories and traits.\n* [ruby-lsp-factory_bot](https://github.com/donny741/ruby-lsp-factory_bot) / [ruby-lsp-rails-factory-bot](https://github.com/johansenja/ruby-lsp-rails-factory-bot) - integration with [ruby-lsp](https://github.com/Shopify/ruby-lsp) to provide intellisense\n\nContributing\n------------\n\nPlease see [CONTRIBUTING.md](https://github.com/thoughtbot/factory_bot/blob/main/CONTRIBUTING.md).\n\nfactory_bot was originally written by Joe Ferris and is maintained by thoughtbot.\nMany improvements and bugfixes were contributed by the [open source\ncommunity](https://github.com/thoughtbot/factory_bot/graphs/contributors).\n\nLicense\n-------\n\nfactory_bot is Copyright © 2008 Joe Ferris and thoughtbot. It is free\nsoftware, and may be redistributed under the terms specified in the\n[LICENSE] file.\n\n[LICENSE]: https://github.com/thoughtbot/factory_bot/blob/main/LICENSE\n\n\u003c!-- START /templates/footer.md --\u003e\n## About thoughtbot\n\n![thoughtbot](https://thoughtbot.com/thoughtbot-logo-for-readmes.svg)\n\nThis repo is maintained and funded by thoughtbot, inc.\nThe names and logos for thoughtbot are trademarks of thoughtbot, inc.\n\nWe love open source software!\nSee [our other projects][community].\nWe are [available for hire][hire].\n\n[community]: https://thoughtbot.com/community?utm_source=github\n[hire]: https://thoughtbot.com/hire-us?utm_source=github\n\n\u003c!-- END /templates/footer.md --\u003e\n\n[ci-image]: https://github.com/thoughtbot/factory_bot/actions/workflows/build.yml/badge.svg?branch=main\n[ci]: https://github.com/thoughtbot/factory_bot/actions?query=workflow%3ABuild+branch%3Amain\n[version-image]: https://badge.fury.io/rb/factory_bot.svg\n[version]: https://badge.fury.io/rb/factory_bot\n[hound-badge-image]: https://img.shields.io/badge/Reviewed_by-Hound-8E64B0.svg\n[hound]: https://houndci.com\n","funding_links":["https://github.com/sponsors/thoughtbot"],"categories":["Ruby","License \u0026 credits","Testing","Features","Vanilla Libraries and Hanami","testing","Gems","Tools","Libraries"],"sub_categories":["Lint","Omniauth","Editors and IDE","Testing"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthoughtbot%2Ffactory_bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthoughtbot%2Ffactory_bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthoughtbot%2Ffactory_bot/lists"}