Exp Mock Usage Analysis

Audits .NET test mock usage by tracing each mock setup through the production code's execution path to find dead, unreachable, redundant, or replaceable mocks. Use when the user asks to audit mock usage, find unused or unnecessary mock setups, check if mocks are needed, reduce mock duplication or over-mocking, simplify test setup, or review whether mock configurations like ILogger/IOptions should use real implementations instead. Supports Moq, NSubstitute, and FakeItEasy.

bouclem c0727a9 5.7 KB Updated 7 repo stars

File contents

bouclem/skills/tree/main/SKILLS/DEVTOOLS/TESTING/001-exp-mock-usage-analysis commit c0727a9817

Frequently asked questions

npx skillmds@latest add bouclem/exp-mock-usage-analysis