Agent skill

Dotnet Test

by NikiforovAll in NikiforovAll/claude-code-rules

This skill should be used when running .NET tests selectively with a build-first, test-targeted workflow.

Apache-2.0Auto-check passedTesting & QA

Install Dotnet Test

skills CLI
$ npx skills add NikiforovAll/claude-code-rules --skill dotnet-test -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install NikiforovAll/claude-code-rules dotnet-test --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/NikiforovAll/claude-code-rules.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/handbook-dotnet/skills/dotnet-test .claude/skills/dotnet-test && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
dotnet-test
GitHub stars
141
Token cost
~1.9k tokens
SKILL.md length
472 words
Files
4 (incl. references)
Skills in repo
26
Repo updated
First seen
Licence
Apache-2.0

At a glance

This skill should be used when running .NET tests selectively with a build-first, test-targeted workflow.

  • Works in 3 steps: Build Solution First → Run Specific Project Tests → Filter When Targeting Specific Tests
  • Running tests with xUnit focus
  • SKILL.md covers Core Workflow, Quick Reference, Framework Differences and Progressive Disclosure, plus 1 more section
  • Calls dotnet

What it does

Dotnet Test is an agent skill from NikiforovAll/claude-code-rules. This skill should be used when running .NET tests selectively with a build-first, test-targeted workflow. Use it for running tests with xUnit focus.

Its SKILL.md is about 1.9k tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files, including reference files (for example `references/blame-mode.md`, `references/parallel-execution.md` and `references/theory-parameter-filtering.md`).

It sits in Testing & QA, covering Unit testing. It works with .NET. The repository describes itself as: Learn practical techniques to enhance your AI-assisted development workflow with Claude Code. The licence is Apache-2.0.

When your agent uses it

  • Running tests with xUnit focus
  • Tasks that involve Unit testing

Example prompts

  • “/dotnet-test”

Requirements

  • Pre-approved tools (allowed-tools): Bash(dotnet build:*), Bash(dotnet test:*), Read, Grep, Glob

Workflow steps

3 steps, taken from the step headings in SKILL.md.

  1. Build Solution First
  2. Run Specific Project Tests
  3. Filter When Targeting Specific Tests

What it can do on your machine

Read from SKILL.md and the folder at commit 281c063. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Bash(dotnet build:*)
    • Bash(dotnet test:*)
    • Read
    • Grep
    • Glob

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • dotnet

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Dotnet Test loads about 1.9k tokens when it runs, and up to ~6.4k if it reads all its reference files. Until then it costs about 40 tokens; SKILL.md has 472 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~40
When it runs · the whole SKILL.md, loaded when a task matches
~1.9k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~6.4k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from NikiforovAll/claude-code-rules at commit 281c063, republished under its Apache-2.0 licence (© NikiforovAll). 472 words, ~1,930 tokens.

Download SKILL.mdSave it as .claude/skills/dotnet-test/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.
name
dotnet-test
description
This skill should be used when running .NET tests selectively with a build-first, test-targeted workflow. Use it for running tests with xUnit focus.
allowed-tools
Bash(dotnet build:*), Bash(dotnet test:*), Read, Grep, Glob

.NET Test Runner

Run .NET tests selectively using a build-first, test-targeted workflow optimized for development speed.

Core Workflow

Follow this workflow to run tests efficiently:

Step 1: Build Solution First

Build the entire solution with minimal output to catch compile errors early:

bash
dotnet build -p:WarningLevel=0 /clp:ErrorsOnly --verbosity minimal
Step 2: Run Specific Project Tests

Run tests for the specific test project with --no-build to skip redundant compilation:

bash
dotnet test path/to/project --no-build --verbosity minimal
Step 3: Filter When Targeting Specific Tests

Narrow down to specific tests using filter expressions:

bash
# By method name using FullyQualifiedName (recommended)
dotnet test --no-build --filter "FullyQualifiedName~MyTestMethod"

# By class name using FullyQualifiedName (recommended)
dotnet test --no-build --filter "FullyQualifiedName~MyTestClass"

# By parameter values in Theory tests (xUnit)
dotnet test --no-build --filter "DisplayName~paramValue"

# Combined filters
dotnet test --no-build --filter "FullyQualifiedName~Create|FullyQualifiedName~Update"

Note: Properties Name~ and ClassName= may not work reliably. Use FullyQualifiedName~ instead.

Quick Reference

Commands
CommandPurpose
dotnet build -p:WarningLevel=0 /clp:ErrorsOnly --verbosity minimalBuild solution with minimal output
dotnet test path/to/Tests.csproj --no-buildRun project tests (skip build)
dotnet test --no-build --logger "console;verbosity=detailed"Show ITestOutputHelper output
dotnet test --no-build --filter "..."Run filtered tests
dotnet test --no-build --list-testsList available tests without running
Filter Operators
OperatorMeaningExample
=Exact matchClassName=MyTests
!=Not equalName!=SkipThis
~ContainsName~Create
!~Does not containName!~Integration
|ORName~Test1|Name~Test2 (note '|' is an escape for markdown)
&ANDName~User&Category=Unit
xUnit Filter Properties
PropertyDescriptionReliabilityExample
FullyQualifiedNameFull test name with namespace✅ ReliableFullyQualifiedName~MyNamespace.MyClass
DisplayNameTest display name (includes Theory parameters)✅ ReliableDisplayName~My_Test_Name or DisplayName~paramValue
NameMethod name⚠️ UnreliableUse FullyQualifiedName~ instead
ClassNameClass name⚠️ UnreliableUse FullyQualifiedName~ instead
CategoryTrait category✅ ReliableCategory=Unit

When to use DisplayName: Essential for filtering Theory tests by their parameter values. xUnit includes all parameter values in the DisplayName (e.g., MyTest(username: "admin", age: 30)), making it ideal for running specific test cases. See references/theory-parameter-filtering.md for detailed guidance.

Common Filter Patterns
bash
# Run tests containing "Create" in method name
dotnet test --no-build --filter "FullyQualifiedName~Create"

# Run tests in a specific class
dotnet test --no-build --filter "FullyQualifiedName~UserServiceTests"

# Run tests matching namespace pattern
dotnet test --no-build --filter "FullyQualifiedName~MyApp.Tests.Unit"

# Run Theory tests with specific parameter value
dotnet test --no-build --filter "DisplayName~admin_user"

# Run tests with specific trait
dotnet test --no-build --filter "Category=Integration"

# Exclude slow tests
dotnet test --no-build --filter "Category!=Slow"

# Combined: class AND parameter value (Theory tests)
dotnet test --no-build --filter "FullyQualifiedName~OrderTests&DisplayName~USD"

# Multiple parameter values (OR condition)
dotnet test --no-build --filter "DisplayName~EUR|DisplayName~GBP"
ITestOutputHelper Output

To see output from xUnit's ITestOutputHelper, use the console logger with detailed verbosity:

bash
dotnet test --no-build --logger "console;verbosity=detailed"
Show full SKILL.md (206 more words)Show less
Reducing Output Noise

Verbosity levels for dotnet test:

LevelFlagDescription
quiet-v qMinimal output (pass/fail only)
minimal-v mClean summary, no test output
normal-v nDefault, shows discovered tests
detailed-v dShows more details
diagnostic-v diagMost verbose

To see test output, use grep to filter out discovery messages (for xUnit):

bash
dotnet test --no-build --logger "console;verbosity=detailed" 2>&1 | grep -v "Discovered \[execution\]"

Framework Differences

This skill focuses on xUnit. For MSTest or NUnit, filter property names differ:

PropertyxUnitMSTestNUnit
Method nameNameNameName
Class nameClassNameClassNameClassName
Category/TraitCategoryTestCategoryCategory
Priority-PriorityPriority

Progressive Disclosure

For advanced scenarios, load additional references:

  • references/theory-parameter-filtering.md - Filtering xUnit Theory tests by parameter values (string, numeric, boolean, etc.)
  • references/blame-mode.md - Debugging test crashes and hangs with --blame
  • references/parallel-execution.md - Controlling parallel test execution

Load these references when:

  • Working with xUnit Theory tests and need to filter by specific parameter values
  • Tests are crashing or hanging unexpectedly
  • Diagnosing test isolation issues
  • Optimizing test run performance

When to Use This Skill

Invoke when the user needs to:

  • Run targeted tests during development
  • Filter tests by method or class name
  • Filter xUnit Theory tests by specific parameter values (e.g., run only admin user test cases)
  • Understand test output and filtering options
  • Debug failing or hanging tests

© NikiforovAll, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 3 other files (references) in plugins/handbook-dotnet/skills/dotnet-test of NikiforovAll/claude-code-rules.

  • SKILL.md
  • references/blame-mode.md
  • references/parallel-execution.md
  • references/theory-parameter-filtering.md

Open the folder on GitHubat commit 281c063

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders. This page covers the copy in NikiforovAll/claude-code-rules, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Dotnet Test next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Dotnet Test compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Dotnet Test this skillNikiforovAll/claude-code-rules141—~1.9kAutomated safety check: PassApache-2.0
New Event Sourceaws/aws-lambda-dotnet1.7k—~3kAutomated safety check: PassApache-2.0
ScottPlot Test RunnerScottPlot/ScottPlot6.8k—~308Automated safety check: PassMIT
Aspire Integration TestingDevBetterCom/DevBetterWeb1572 repos~2.3kAutomated safety check: PassNone
Vstest Build Testmicrosoft/vstest969—~1.9kAutomated safety check: PassMIT
Coverage Analysisrunceel/ReactiveProperty944—~5.9kAutomated safety check: WarnMIT

Similar skills

  • New Event Source

    aws/aws-lambda-dotnet

    Official

    Add a new AWS event source attribute (e.g., Kinesis, Kafka, MQ) to the Lambda .NET Annotations framework, including the attribute class, source generator integration, CloudFormation writer, unit…

    1.7k GitHub stars~3k tokensUpdated yesterday
    Testing & QAAuto-check passed
  • ScottPlot Test Runner

    ScottPlot/ScottPlot

    Run or add ScottPlot 5 tests. Use for unit-test and cookbook-test work; unless explicitly asked otherwise, restrict manual test execution to the Unit Tests…

    6.8k GitHub stars~308 tokensUpdated 1 mo ago
    Testing & QAAuto-check passed
  • Aspire Integration Testing

    DevBetterCom/DevBetterWeb

    Write integration tests using .NET Aspire's testing facilities with xUnit.

    157 GitHub starsUsed in 2 repos~2.3k tokens
    Testing & QAAuto-check passed
  • Vstest Build Test

    microsoft/vstest

    Official

    Build, test, and validate changes in the vstest repository. An agent skill from microsoft/vstest.

    969 GitHub stars~1.9k tokensUpdated yesterday
    Testing & QAAuto-check passed
  • Coverage Analysis

    runceel/ReactiveProperty

    Automated, project-wide code coverage and CRAP (Change Risk Anti-Patterns) score analysis for .NET projects with existing unit tests.

    944 GitHub stars~5.9k tokensUpdated 1 mo ago
    Testing & QAAuto-check: warnings
  • Unit Testing

    OpenCoreMMO/OpenCoreMMO

    Write, fix, or review NeoServer unit tests using xUnit and FluentAssertions.

    481 GitHub stars~1.6k tokensUpdated 16 days ago
    Testing & QAAuto-check passed

More from NikiforovAll/claude-code-rules

All 26 skills in this repo
  • Reflect Solution

    NikiforovAll/claude-code-rules

    Summarize WHAT WAS SHIPPED in a Claude Code session as a self-contained HTML slide deck — the elevator pitch (problem, solution, decisions, artifacts, verification, gaps), not a play-by-play of tool…

    141 GitHub stars~3.8k tokensUpdated 6 days ago
    Auto-check passed
  • Dotnet Analyzers

    NikiforovAll/claude-code-rules

    Run dotnet format to fix code style and analyzer diagnostics (IDE0005, CA, SA).

    141 GitHub stars~1.9k tokensUpdated 6 days ago
    Auto-check passed
  • Ilspy Decompile

    NikiforovAll/claude-code-rules

    Understand implementation details of .NET code by decompiling assemblies.

    141 GitHub starsUsed in 2 repos~760 tokens
    Auto-check passed
  • Reflect Tree

    NikiforovAll/claude-code-rules

    Visualize a Claude Code session as a quest/skill tree — a navigable SVG graph where nodes are turns and edges show flow, with distinct visual encoding for normal flow, dead-ends, corrections…

    141 GitHub stars~2.8k tokensUpdated 6 days ago
    Auto-check passed
  • Structured Plan Mode

    NikiforovAll/claude-code-rules

    This skill should be used when planning and tracking complex feature implementations that require systematic task decomposition.

    141 GitHub stars~4.2k tokensUpdated 6 days ago
    Auto-check passed
  • Glab

    NikiforovAll/claude-code-rules

    Expert guidance for using the GitLab CLI (glab) to manage GitLab issues, merge requests, CI/CD pipelines, repositories, and other GitLab operations from the command line.

    141 GitHub starsUsed in 1 repo~2.2k tokens
    Auto-check passed

Works with

Categories

Questions about Dotnet Test

What does Dotnet Test do?

This skill should be used when running .NET tests selectively with a build-first, test-targeted workflow. Dotnet Test is an agent skill from NikiforovAll/claude-code-rules.NET tests selectively with a build-first, test-targeted workflow.

When should I use Dotnet Test?

Dotnet Test fits situations like: running tests with xUnit focus; tasks that involve Unit testing.

How do I install Dotnet Test in Claude Code?

Run `npx skills add NikiforovAll/claude-code-rules --skill dotnet-test -a claude-code`. Or copy the skill folder (plugins/handbook-dotnet/skills/dotnet-test in NikiforovAll/claude-code-rules) into .claude/skills/dotnet-test in your project. Claude Code loads it when a task matches its description.

How do I install Dotnet Test in Codex?

Run `npx skills add NikiforovAll/claude-code-rules --skill dotnet-test -a codex`. Or copy the skill folder (plugins/handbook-dotnet/skills/dotnet-test in NikiforovAll/claude-code-rules) into .agents/skills/dotnet-test in your project. Codex loads it when a task matches its description.

Can I use Dotnet Test in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add NikiforovAll/claude-code-rules --skill dotnet-test -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/dotnet-test, .gemini/skills/dotnet-test, .github/skills/dotnet-test and .opencode/skills/dotnet-test in your project.

What does Dotnet Test need to run?

Going by SKILL.md and its folder, Dotnet Test needs the command-line tools its instructions call (dotnet). Its frontmatter pre-approves these tools: Bash(dotnet build:*), Bash(dotnet test:*), Read, Grep, Glob.

Does Dotnet Test access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Dotnet Test safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Dotnet Test use?

Dotnet Test is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Dotnet Test use?

About 1.9k tokens (SKILL.md is roughly 7.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 4.5k tokens, read only when the agent opens those files.

What are the alternatives to Dotnet Test?

Skills that share tags, products or a category with Dotnet Test: New Event Source (aws/aws-lambda-dotnet, 1.7k stars), ScottPlot Test Runner (ScottPlot/ScottPlot, 6.8k stars), Aspire Integration Testing (DevBetterCom/DevBetterWeb, 157 stars) and Vstest Build Test (microsoft/vstest, 969 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Dotnet Test?

NikiforovAll (a GitHub user) maintains it in NikiforovAll/claude-code-rules, which has 141 GitHub stars. The repository holds 26 skills in this directory. The repository was last updated on October 2, 2026.

Source: NikiforovAll/claude-code-rules on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.