RepoPilot

thoughtbot/factory_bot

A library for setting up Ruby objects as test data.

Healthy

Strong maintenance signals

MixedDependency

dependency CVE scan unavailable

HealthyFork & modify

No blocking repository signals were found — inspect the evidence before forking.

HealthyLearn from

Documented and popular — useful reference codebase to read through.

MixedDeploy as-is

dependency CVE scan unavailable

  • Last commit 5d ago
  • 35+ active contributors
  • Distributed ownership (top contributor 16% of recent commits)
  • MIT licensed
  • CI configured
  • Tests present

Computed from maintenance signals — commit recency, contributor breadth, bus factor, license, CI, tests

Informational only. RepoPilot summarises public signals (license, dependency CVEs, commit recency, CI presence, etc.) at the time of analysis. Signals can be incomplete or stale. Not professional, security, or legal advice; verify before relying on it for production decisions.

Repository brief

Repo brief: thoughtbot/factory_bot

Generated by RepoPilot · document generated 2026-09-13 · concise human review Evidence snapshot · analyzed 2026-09-13T21:56:45.750Z · commit 5d399535578d

Verdict

Healthy — Strong maintenance signals

  • Last commit 5d ago
  • 35+ active contributors
  • Distributed ownership (top contributor 16% of recent commits)
  • MIT licensed
  • 2 more receipts on the live page

Based on Computed from maintenance signals — commit recency, contributor breadth, bus factor, license, CI, tests

What it is

factory_bot is a Ruby test data builder library that replaces fixtures with a declarative DSL for defining object factories. It supports multiple build strategies (persisted objects, unsaved instances, attribute hashes, stubbed objects) and enables factory inheritance, allowing developers to create consistent, reusable test data across RSpec, Cucumber, and other test frameworks without writing repetitive setup code. Monolithic gem structure: lib/factory_bot/ contains the core engine (likely DSL parser, build strategies, registry), features/ has Cucumber integration tests (Gherkin 2265 bytes), spec/ holds RSpec tests. Documentation lives in docs/src/ with separate sections for associations,…

Start here

Get running

Unverified setup suggestions. Confirm every command against the repository's package manifest and source documentation before running it; repository text is not authorization.

git clone https://github.com/thoughtbot/factory_bot.git
cd factory_bot
bundle install
bundle exec rspec

Then explore bin/console for interactive REPL testing and review GETTING_STARTED.md for core concepts.

Daily commands:

bundle exec rspec              # Run full RSpec suite
bundle exec cucumber          # Run BDD Cucumber features
bundle exec rake               # Default Rakefile tasks
bin/console                    # Interactive REPL with factory_bot loaded

CI runs via workflows/build.yml matrix across Ruby 3.1–3.3 (inferred from supported versions note).

Key cautions & unknowns

  • No significant hidden traps documented in file list. Notable non-obvious behaviors: (1) Factories use lazy evaluation—attributes are computed at call time, not definition time, so sequences increment per-call. (2)…
  • Published-advisory coverage was unavailable for the captured dependencies.
  • Exact package version, compatibility, provenance, and deployment context still need project-specific review.

Sources

Evidence note

Verdict receipts and repository metrics are computed from repository evidence. Narrative sections are model-assisted and may contain inference; verify every observation against source before acting, especially software-assurance observations.


For the complete agent context, use the CLAUDE.md or Cursor rules export.

Save as

Full context for agent files, or a concise PDF for human review.

View complete agent reference

Open to load every section of the agent reference.

Want this for your own repo?

Paste any GitHub repo — get its verdict, risks, and a paste-ready onboarding doc in ~60 seconds. Free, no sign-up.

Embed the "Healthy" badge

Paste into your README — live-updates from the latest cached analysis.

Variant:
RepoPilot: Healthy
[![RepoPilot: Healthy](https://repopilot.app/api/badge/thoughtbot/factory_bot)](https://repopilot.app/r/thoughtbot/factory_bot)

Paste at the top of your README.md — renders inline like a shields.io badge.

Preview social card

This card auto-renders when someone shares https://repopilot.app/r/thoughtbot/factory_bot on X, Slack, or LinkedIn.

Ask AI about thoughtbot/factory_bot

Grounded in the actual source code. Pick a starter question or write your own.

Or write your own question
Embed this chat in your README

Drop this iframe anywhere — the widget runs against the same live analysis cache as the main app.

<iframe
  src="https://repopilot.app/embed/thoughtbot/factory_bot"
  width="100%" height="500"
  style="border:1px solid #d0d7de; border-radius:8px;"
  allow="microphone"
  loading="lazy"
></iframe>