Test names are descriptive
Why it matters
When a test fails in CI, the first signal is the test name. A name like test 1 or should work tells the developer nothing: which behavior failed, which input triggered it, which component is broken. AI-generated test scaffolding frequently produces placeholder names that were never replaced. The result is a test suite where CI failure messages require reading test bodies to understand what broke — slowing down incident response and increasing the chance a developer ignores the failure. ISO-25010:2011 maintainability requires that tests communicate intent clearly.
Severity rationale
Low because placeholder names don't affect whether tests catch bugs, but they degrade the team's ability to act quickly on CI failures.
Remediation
Replace any test name under 5 characters or matching patterns like test 1, foo, should work, or empty strings with a name that describes the specific behavior and expected outcome. The name should complete the sentence "It...":
// Before: meaningless in CI output
it('test 1', () => { ... })
it('test 2', () => { ... })
// After: CI failure message is self-explanatory
it('rejects signup with duplicate email', () => { ... })
it('returns 404 when user does not exist', () => { ... })
DetectionPro
The detection method for this pattern is part of AuditBuffet Pro.
The full method (what to look for, pass and fail conditions, and how results get reported) ships inside the Test Reality Audit. The pattern definition, severity rationale, and remediation remain openly licensed under CC-BY-4.0.
External references
- iso-25010:2011 · maintainability.analysability — Maintainability (readability/understandability)
Taxons
History
- 2026-04-18·v1.0.0·Initial import from ai-slop-test-theater·automated