New advertisers: 50% off your first month with code FIRSTMONTHSee slots
dotnet avatar

Test Smell Detection

Audits existing tests against the testsmells.org 19-smell academic catalog, naming each finding with citable research categories.

skills.sh installs
4.5K
GitHub stars
6.3K
last updated
Aug 1, 2026
View on GitHub

What it does

  • Covers 19 formal smells (Assertion Roulette, Mystery Guest, Eager Test, Sleepy Test, Sensitive Equality, and others) with research-backed severity ranking
  • Supports .NET, Python, TypeScript/JavaScript, Java, Go, Ruby, Rust, Swift, Kotlin, PowerShell, and C++ with framework-correct fixes
  • Calibrates findings against idioms such as table-driven tests, parametrization, and integration markers to limit false positives
  • Designed for academic or citable test-smell reviews, not quick pragmatic audits or test writing, running, or migration

Install

$ npx -y skills add dotnet/skills --skill test-smell-detection -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Test Smell Detection

Deep formal audit of test code in any supported language using an academic test smell taxonomy. Detects symptoms of bad design or implementation decisions that make tests harder to understand, more fragile, less effective at catching bugs, or more expensive to maintain. Produces a severity-ranked report with specific locations and actionable fixes.

Language-specific guidance: Call the test-analysis-extensions skill to discover available extension files, then read the file matching the target codebase. The extension file documents test markers, sleep / time / random APIs, skip annotations, setup/teardown, mystery-guest indicators (file/database/network/env), integration markers, and language-specific calibration notes that drive the smell detectors below.

Why Test Smells Matter

Test smells erode confidence in a test suite and inflate maintenance costs:

Details

Repository
github.com/dotnet/skills
Categories
Testing & QA, Code Review & Quality
License
MIT
First seen
Aug 2, 2026

More from dotnet/skills

All 95

Similar to Test Smell Detection

More Testing & QA