finding-tests
Installation
SKILL.md
Finding Existing Tests
Applies to: C# code only. If the production code in question is not C# - do not use this skill. Skip it silently and use the host's normal test-discovery approach. The underlying coverage tool only understands C# symbols.
Always use the findTests tool via execute_tool to locate existing tests for a given C# class and method. This tool queries the IDE code coverage data directly and is:
- Precise — returns exact test locations without false positives
- Token-efficient — no need for glob, grep, or directory listing guesses
- Fast — a single call replaces multiple rounds of searching
findTests
Find existing tests for a given production class and method. Supply the production code's class name, namespace, and file path — the tool returns the path of the single test file most relevant to the given method.