/rider-skills:finding-testsfrom rider-skills
Locates existing tests for C# classes and methods using Rider's IDE coverage data. Helps find precise test locations before writing or editing C# test code.
Ships in rider-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
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:
findTestsFind 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.
execute_tool(command="findTests --className <value> --classNamespace <value> --filePath <value> [--methodName <value>] [--methodArguments <value>]")
| Parameter | Type | Required | Description |
|---|---|---|---|
--className | string | Yes | Name of the class |
--classNamespace | string | Yes | Namespace of the given class |
--filePath | string | Yes | Absolute file path to file with the given class |
--methodName | string | No | Name of the method |
--methodArguments | string | No | Names and types of the method arguments — use to target a specific overload (e.g. "TextReader reader, Type objectType") |
String parameters: Quote values containing spaces: --filePath '/Users/dev/MyProject/src/Services/OrderService.cs'
User says: "Find the tests for the JsonSerializer class"
{"tool":"execute_tool","arguments":{"command":"findTests --className JsonSerializer --classNamespace Newtonsoft.Json --filePath /projects/Newtonsoft.Json/Src/Newtonsoft.Json/JsonSerializer.cs"}}
User says: "Find tests for the Deserialize method in JsonSerializer"
{"tool":"execute_tool","arguments":{"command":"findTests --className JsonSerializer --classNamespace Newtonsoft.Json --filePath /projects/Newtonsoft.Json/Src/Newtonsoft.Json/JsonSerializer.cs --methodName Deserialize"}}
User says: "Find tests for the Deserialize(TextReader reader, Type objectType) overload in JsonSerializer"
{"tool":"execute_tool","arguments":{"command":"findTests --className JsonSerializer --classNamespace Newtonsoft.Json --filePath /projects/Newtonsoft.Json/Src/Newtonsoft.Json/JsonSerializer.cs --methodName Deserialize --methodArguments 'TextReader reader, Type objectType'"}}
User says: "Find tests for the ReadJson<TResult> method in JsonConverter<T>"
{"tool":"execute_tool","arguments":{"command":"findTests --className 'JsonConverter<T>' --classNamespace Newtonsoft.Json --filePath /projects/Newtonsoft.Json/Src/Newtonsoft.Json/JsonConverter.cs --methodName 'ReadJson<TResult>'"}}
{"tool":"execute_tool","arguments":{"command":"findTests --className DnsClient --classNamespace My.Network.Clients --filePath '/Users/dev/MyProject/src/Network Clients/DnsClient.cs' --methodName ResolveAsync"}}
--param MUST be followed by a value (no bare flags)--filePath '/Users/dev/MyProject/my folder/file.cs'findTests, verify the production file is .cs. If it is any other language, do not invoke this skill or its tool — skip silently and fall back to standard test discovery.findTests over glob, grep, or directory listing to find tests in C# code. These are wasteful and imprecise. If execute_tool is unavailable, fall back to grep/glob as a last resort and inform the user.findTests reports no tests exist, trust that result — do not retry with alternative search tools.If execute_tool is not available, inform the user and fall back to grep/glob only as a last resort.
findTests via execute_tool timeoutIf calling findTests via execute_tool times out, inform the user and fall back to your standard test discovery method.
You may stop trying findTests if it timeouts for three times in a row.
If findTests returns empty results, trust the result. Do not retry with alternative search methods.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
csharp-testing, test-discovery, dotnet-testing, rider-ide, code-coverage
6 skills in this plugin
/debugging-codeUse for debugger-driven runtime root-cause analysis in Rider-supported solutions and projects, including .NET/C#, F#, VB, C++, Unity, Unreal Engine, and other GameDev or mixed-language projects. Trigger when runtime state or control-flow evidence is needed — actual values, branch taken, call order, thread context, whether execution reaches a chosen line — and cannot be derived confidently from source or logs; when pinning the relevant path would otherwise mean reading many files or tracing a deep call chain; or on an explicit request to debug, set breakpoints, step, or inspect runtime values. Do not use for compile-time or syntax errors, source-obvious bugs, failures already pinpointed by logs/tests, or code merely named debug/Debugger./refactoring-codeUse for any refactoring in a solution open in Rider (.NET/C#, F#, VB, C++, Unity, Unreal Engine, XAML, Razor, GameDev and mixed-language projects) — rename a type, member or namespace (including fixing a typo in one), rename a property together with related parameters, change a method signature, move a type to another namespace, delete unused or obsolete types and members (dead-code cleanup, even whole files), extract an interface, base class or method, or reorganize namespaces. Use it even when the change looks like a one-file edit: the IDE tool applies it, and every reference, in one call. Read this SKILL.md in a command of its own (nothing chained after it) before the first `execute_tool` call: it holds the command syntax. Do not use for file-only moves, config keys, string literals, comment text, generated output, or logic changes with unchanged names/signatures.npx claudepluginhub jetbrains/rider-skills --plugin rider-skillsOther plugins' skills for the same job