strehldev
Re:Why frozen test fixtures are a problem on large projects and how to...
on Tuesday December 09, 2025 @10:02AM (#46205656)
This is basically how I solved this in a past codebase. I called them "builders" and for complex scenarios requiring multiple different entities I called them "scenario builders" that created multiple entities.
My rule was to randomize every property by default. The test needs to specify which property needs to have a certain value. E.g. set the address if you're testing something about the address.
So it was immediately obvious which properties a test relied on.