Testing Guide

Use when writing or reviewing a single good test independent of any framework: structuring it as Arrange-Act-Assert / Four-Phase, meeting FIRST, naming it, choosing and naming the right test double (Dummy / Stub / Spy / Mock / Fake), deciding what to mock and what not to, telling state from behaviour verification, and spotting test smells. Triggers on test double, mock vs stub vs fake vs spy, what should I mock, over-mocking, AAA, FIRST, fragile/flaky/obscure test, Object Mother, Test Data Builder, fixture setup, even when the user doesn't say 'testing'.

xonovex c859c67 8 files · 28.9 KB Updated

File contents

xonovex/platform/tree/main/packages/skill/skill-testing/testing-guide commit c859c67a87

Frequently asked questions

npx skillmds@latest add xonovex/testing-guide