← Graph

Do fixtures beat factories?

question 3 connections

Audience asks about using Rails YAML fixtures instead of FactoryBot. Hasiński hasn't used them extensively; his intuition is they may be slower at file-read time but faster because they avoid building nested objects. A later audience contribution points out that test-prof can catch factories and reuse them as fixtures — ideal for things like a shared current_user or company.

answer_summary
Speaker lacks direct experience; another attendee notes test-prof can catch factories and use them as fixtures for common shared entities.
question Do fixtures beat factories?
about
FactoryBot tool
Question contrasts Rails fixtures with FactoryBot.
question Do fixtures beat factories?
about
test-prof tool
Answer notes test-prof can catch factories and reuse them as fixtures.
question Do fixtures beat factories?
asked_at
Asked during the talk's Q&A.

Provenance

Read by
5 extractions