Writing Unit Tests

by riekelte67b7af9ac74No license5 starsListed Oct 8, 2026Updated Oct 8, 2026Repository updated 3 weeks ago

Use when writing or refactoring unit tests - a new test file, added cases, a flaky test, an unreadable one. Encodes behavior-first testing: one behavior per test, names that state the claim, deterministic setup, mocks only at boundaries you do not own. Use whenever a test is being written, even a quick one, and whenever a test needs a sleep, a mock of your own code, or a copy of the implementation's math.

Instructions onlySoftware Development

Only the file list is public. File contents are available once the skill is installed in a workspace.

PathSizeType
SKILL.md4.7 KBtext/markdown

Source and attribution

Source:riekelt/principal-engineerinplugins/principal-engineer/skills/writing-unit-testsat commite67b7af

License: No license

Content belongs to its original authors. SourceWeft indexes it from a public repository.

Report or request removal