Ray's Knowledge Base
Unlock

Use generated random names in test fixtures, never the user's real name or handle

PreferenceVerified 13 Oct 2026Holds anywhere
Preference. A rule, why it holds, and how to apply it.

Rule#

Do not put the user's real name, handle or email in code, tests or fixtures. Use generated or randomized placeholder names instead, such as dev-1. When the user flags one such name, scan the whole repo for other personal names and emails and replace them all.

Why#

The user asked for no PII in committed files. They said the fixtures should not use their name and asked for random names. A scan then found six more hardcoded fixtures with the user's handle in committed tests.

How to apply#

When you write fixtures for authors, users, profiles or commit identities, use neutral generated names. Before you finish, grep the repo for the user's handle, name and email, and fix every hit. Put the cleanup in its own test commit, for example 'test(tui): randomize personal names in forge fixtures'. Make sure each commit still builds and the tests pass.