Dotnet Test

Skills for running, generating, analyzing, and improving .NET tests: test execution, filtering, platform detection, coverage, testability, and MSTest workflows.

by @dotnet 22 skills

Skills in this plugin

22
  1. ▌
    Run Tests · dotnet
    Run, filter, or troubleshoot .NET tests with `dotnet test`, detecting the test platform (VSTest vs Microsoft.Testing.Platform) and framework to apply the correct command syntax.
    22.1k repo stars
  2. ▌
    Crap Score · dotnet
    Calculates CRAP (Change Risk Anti-Patterns) scores for .NET methods by combining cyclomatic complexity with code coverage data from Cobertura XML reports.
    22.1k repo stars
  3. ▌
    Grade Tests · dotnet
    Grades individual test methods and produces a compact markdown table with a letter grade, score band, and one-line note for each test.
    22.1k repo stars
  4. ▌
    Test Tagging · dotnet
    Analyzes test suites across multiple languages and tags each test with standardized traits (positive, negative, critical-path, etc.) for better test categorization and coverage visibility.
    22.1k repo stars
  5. ▌
    Filter Syntax · dotnet
    Reference for test filter syntax across VSTest and MTP platforms, covering MSTest, NUnit, xUnit v3, and TUnit frameworks with examples and translation guidance.
    22.1k repo stars
  6. ▌
    Mtp Hot Reload · dotnet
    Sets up Microsoft Testing Platform hot reload to iterate fixes on failing tests without rebuilding, covering package installation, environment configuration, and the iterative workflow.
    22.1k repo stars
  7. ▌
    Assertion Quality · dotnet
    Analyzes test suites to measure assertion diversity, detect shallow or trivial assertions, and identify tests that lack meaningful verification.
    22.1k repo stars
  8. ▌
    Coverage Analysis · dotnet bundle
    Analyzes .NET project code coverage and CRAP (Change Risk Anti-Patterns) scores to identify risk hotspots, methods blocking coverage gains, and prioritize where to add tests.
    22.1k repo stars
  9. ▌
    Test Gap Analysis · dotnet bundle
    Analyzes production code to find gaps in existing tests by reasoning about hypothetical mutations and checking whether tests would catch them.
    22.1k repo stars
  10. ▌
    Code Testing Agent · dotnet bundle
    Generates and writes unit tests for any programming language using a multi-agent pipeline that researches, plans, and implements tests with build and verification steps.
    22.1k repo stars
  11. ▌
    Platform Detection · dotnet bundle
    Detects the test platform (VSTest vs Microsoft.Testing.Platform) and test framework (MSTest, xUnit, NUnit, TUnit) from .NET project files.
    22.1k repo stars
  12. ▌
    Test Anti Patterns · dotnet
    Audits test files for anti-patterns and quality issues, producing a severity-ranked report across multiple languages and frameworks.
    22.1k repo stars
  13. ▌
    Test Smell Detection · dotnet bundle
    Audits test code in any language using the academic testsmells.org 19-smell catalog, producing a severity-ranked report with specific locations and actionable fixes.
    22.1k repo stars
  14. ▌
    Writing Mstest Tests · dotnet
    Write, create, modernize, or fix comprehensive MSTest unit tests with MSTest 3.x/4.x APIs, covering assertions, data-driven tests, lifecycle, and async patterns.
    22.1k repo stars
  15. ▌
    Testability Obstacle · dotnet
    MUST USE for C#/.NET deterministic tests that require the smallest production seam for DateTime/Task.Delay/File/Environment/Guid/Random, static API preservation, nested/parallel overrides, or no real I/O. USE ONLY when the target workspace contains C# source plus a .csproj or .sln. DO NOT USE for audits, bulk migration, code that already has an injectable seam, or an explicit migration to a user-named existing abstraction (migrate-static-to-wrapper). Use instead of general test generation when the requested test is impossible without a production edit and seam selection is still open.
    22.1k repo stars
  16. ▌
    Find Untested Sources · dotnet bundle
    Parse source files to find which ones have no test file referencing their declared types, producing a prioritized worklist of untested files.
    22.1k repo stars
  17. ▌
    Code Testing Extensions · dotnet bundle
    Provides file paths to language-specific extension files for the code-testing pipeline, enabling discovery of guidance for .NET, Python, TypeScript, and other languages.
    22.1k repo stars
  18. ▌
    Test Analysis Extensions · dotnet bundle
    Provides file paths to language-specific reference files for polyglot test analysis skills, enabling framework-aware detection of test markers, assertions, and patterns across .NET, Python, TypeScript, Java, Go, Ruby, Rust, Swift, Kotlin, PowerShell, and C++.
    22.1k repo stars
  19. ▌
    Migrate Static To Wrapper · dotnet
    Mechanically replace static dependency call sites with wrapper or built-in abstraction calls across a bounded scope, such as migrating DateTime.UtcNow to TimeProvider.GetUtcNow() or File.ReadAllText to IFileSystem.
    22.1k repo stars
  20. ▌
    Detect Static Dependencies · dotnet
    Scan C# source files for hard-to-test static dependencies and produce a ranked report of static call sites by frequency.
    22.1k repo stars
  21. ▌
    Generate Testability Wrappers · dotnet
    Generate wrapper interfaces, default implementations, and DI registration code to make hard-to-test static dependencies in C# testable, using built-in abstractions like TimeProvider or custom wrappers.
    22.1k repo stars
  22. ▌
    Scaffold Dotnet Test Project · dotnet
    MUST USE when an existing .NET test project was excluded from a .slnf/CI solution filter, disappeared from .sln/.slnx discovery, or lost its production ProjectReference; also for requests to set up, create, reuse, add, register, include, or repair a test project. Handles "tests pass directly but CI discovers zero", exact solution wiring, xUnit/NUnit/MSTest, and central packages. DO NOT USE to only author tests in an already-wired project (code-testing), run tests, migrate, or correct MSTest syntax/configuration without changing project or CI files (writing-mstest-tests).
    22.1k repo stars