test-anti-patterns

Scan .NET test code for anti-patterns grouped by severity with fixes.

1|Updated May 21, 2026
One-click install
npx skills add https://github.com/1k-off/umbraco-observability-playground --skill test-anti-patterns-1k-off
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-anti-patterns
Source: https://github.com/1k-off/umbraco-observability-playground/tree/main/.agents/skills/test-anti-patterns
Command: npx skills add https://github.com/1k-off/umbraco-observability-playground --skill test-anti-patterns-1k-off

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps detect .NET test anti-patterns that make tests unreliable, misleading, or low-diagnostic, so failures are easier to trust and investigate.

Core Features & Use Cases

  • Critical anti-pattern detection: flags tests with no assertions, always-true/self-referential assertions, swallowed exceptions, and coverage inflation patterns that give false confidence.
  • Reliability and maintenance review: identifies flakiness indicators (timing/random/environment coupling), test ordering dependencies, broad exception assertions, and over-mocking/implementation coupling.
  • Actionable, prioritized recommendations: groups findings by severity and explains why each issue is harmful, including concrete fixes for Critical/High problems.

Quick Start

Ask an agent to review your .NET test files for anti-patterns and return a prioritized list of Critical/High issues with specific locations and minimal diffs.

Frequently Asked Questions about test-anti-patterns

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

FAQPage Schema
How do I find flaky tests in my .NET test suite?

Flaky test detection scans provided .NET test code for timing dependencies, random data coupling, and test ordering issues, returning a prioritized list of reliability findings with specific locations and concrete fixes.

What are common .NET test anti-patterns that cause false confidence?

Common .NET test anti-patterns include tests with no assertions, always-true assertions, swallowed exceptions, and coverage-touching patterns that inflate coverage metrics without verifying actual behavior.

How do I audit xUnit or MSTest tests for meaningless assertions?

Auditing xUnit or MSTest tests scans for self-referential assertions and broad exception handling, grouping detected anti-patterns by severity and explaining why each issue undermines diagnostic value.

Can I review NUnit tests for swallowed exceptions and ordering dependencies?

Yes, reviewing NUnit tests detects swallowed exceptions and test ordering dependencies, grouping findings by severity and providing concrete fixes for Critical and High issues to restore test reliability.

How do I get actionable fixes for tests that pass without verifying behavior?

Scanning test code identifies tests passing without verifying behavior and generates actionable, prioritized recommendations, including minimal diffs and concrete fixes for Critical and High severity anti-patterns.