dotnet-test

Execute .NET unit tests with optional Coverlet coverage and BenchmarkDotNet benchmarks.

4|Updated Dec 7, 2025
One-click install
npx skills add https://github.com/icartsh/icartsh_plugin --skill dotnet-test
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dotnet-test
Source: https://github.com/icartsh/icartsh_plugin/tree/main/icartsh-plugin/skills/dotnet-test
Command: npx skills add https://github.com/icartsh/icartsh_plugin --skill dotnet-test

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines running .NET tests, generating coverage reports, and executing benchmarks to validate code quality and performance.

Core Features & Use Cases

  • Unit tests: run xUnit/NUnit tests for all or selected projects
  • Code coverage: generate and review coverage reports
  • Benchmarks: run BenchmarkDotNet results for performance insight

Quick Start

Navigate to dotnet directory and run: dotnet test (or dotnet test --collect:"XPlat Code Coverage") to produce test results and coverage data.

Frequently Asked Questions about dotnet-test

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run xUnit or NUnit unit tests for a specific .NET project?

To run unit tests for a specific .NET project, provide the project_path input while executing within the dotnet directory. This targets a single project, outputting test results and a non-zero exit code on failure.

How do I generate code coverage reports for .NET projects using coverlet?

Generate .NET code coverage by enabling the coverage input when running tests. This applies coverlet to produce coverage data, allowing you to review coverage reports alongside the standard test results output.

Can I run BenchmarkDotNet benchmarks alongside unit tests in .NET?

Yes, you can run BenchmarkDotNet benchmarks by enabling the optional benchmark input. This executes performance benchmarks alongside your unit tests, outputting benchmark results for performance insight.

What inputs do I need to configure before executing .NET unit tests?

Before executing .NET unit tests, configure inputs like target (all, specific project, or path), configuration, coverage, and project_path. Ensure execution occurs within the dotnet directory to produce valid test results.

Why does my .NET test execution fail with a non-zero exit code?

Your .NET test execution returns a non-zero exit code upon test failure. This indicates that one or more unit tests failed during the run, stopping the process and highlighting the broken tests in the output results.