Harness Testing

Use when writing, designing, or strengthening harness tests — tests that boot a larger unit of a system (an HTTP handler, a job, a UI flow) into a realistic but controlled environment (fake requests, mocked services/APIs, controlled env vars, an in-memory/seeded database, fake timers) and assert end-to-end behavior. Use when asked to "test the whole handler", "integration test without a real DB/network", "mock the services and run the real code path", "add a test harness", or to improve reliability of code that only misbehaves when wired to its dependencies. Framework-agnostic; includes notes for TypeScript/Deno/Node, Python, and Go.

looties-io b6a977e 4 files · 10.4 KB Updated

File contents

looties-io/looties-skills/tree/main/harness-testing commit b6a977e0d2

Frequently asked questions

npx skillmds@latest add looties-io/harness-testing