test-anti-patterns

Detect and report anti-patterns in .NET test suites.

2|Updated Mar 17, 2026
One-click install
npx skills add https://github.com/sayedihashimi/copilot-skill-eval --skill test-anti-patterns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-anti-patterns
Source: https://github.com/sayedihashimi/copilot-skill-eval/tree/main/examples/aspnet-razor-pages/plugins/dotnet-skills/dotnet-test/skills/test-anti-patterns
Command: npx skills add https://github.com/sayedihashimi/copilot-skill-eval --skill test-anti-patterns

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Detects and reports test anti-patterns and code smells in .NET test suites, helping teams improve reliability, maintainability, and diagnostic value.

Core Features & Use Cases

  • Detects critical anti-patterns like missing assertions, flaky timing, and over-mocking across MSTest, xUnit, NUnit, and TUnit.
  • Provides severity-labeled findings with file locations and concrete remediation guidance.
  • Useful for test audits, refactors, and onboarding new engineers to test quality standards.

Quick Start

Review the user-provided test code and prompt the assistant to produce a prioritized set of improvements.

Frequently Asked Questions about test-anti-patterns

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

FAQPage Schema
How do I detect test anti-patterns in a .NET test suite?

Test anti-patterns in .NET are detected by scanning test files for missing assertions, flaky timing, and over-mocking. The scan generates a structured report with severity levels, file locations, and recommended fixes for each finding.

What are common code smells in xUnit, MSTest, and NUnit tests?

Common code smells in xUnit, MSTest, and NUnit tests include missing assertions, poor test isolation, inadequate naming, flakiness indicators, and excessive mocking. Identifying these issues helps improve test reliability, maintainability, and diagnostic value.

Can I scan TUnit test files for flakiness indicators?

Yes, TUnit test files can be scanned for flakiness indicators alongside MSTest, xUnit, and NUnit suites. The scan evaluates timing issues and isolation problems, generating a prioritized set of improvements with concrete remediation guidance.

What is the best way to audit .NET tests for over-mocking and assertion quality?

The best way to audit .NET tests for over-mocking and assertion quality is to perform an automated scan across multiple test files. This produces severity-labeled findings with specific file locations and actionable fixes to improve overall test quality.

Does the test anti-pattern scan require specific dependencies or components?

No, the test anti-pattern scan requires no external dependencies or components to function. It directly analyzes your provided .NET test code to identify and report structural issues and code smells.