test-anti-patterns

Audits test files in any language for anti-patterns and produces severity-ranked quality reports.

Updated Jul 2, 2026
One-click install
npx skills add https://github.com/ecoDriverltd/FoundryAgentsExperiment --skill test-anti-patterns-ecodriverltd
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: test-anti-patterns
Source: https://github.com/ecoDriverltd/FoundryAgentsExperiment/tree/main/.agents/skills/test-anti-patterns
Command: npx skills add https://github.com/ecoDriverltd/FoundryAgentsExperiment --skill test-anti-patterns-ecodriverltd

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Test suites often contain tests that pass but verify nothing, are flaky, or are hard to maintain, giving teams false confidence in their code. This Skill audits existing test files to detect anti-patterns like missing assertions, swallowed exceptions, self-referential assertions, and order-dependent tests, then reports findings ranked by severity. ## Core Features & Use Cases - Multi-language anti-pattern detection: Scans tests in .NET, Python/pytest, TypeScript/Jest, Java, Go, Ruby, Rust, C++, and more for Critical, High, Medium, and Low severity issues. - Severity-calibrated reporting: Produces a structured report with specific file/line locations, explanations, concrete before/after fixes, and positive observations about what the tests do well. - Language-extension aware: Loads framework-specific guidance (sleep APIs, skip markers, setup/teardown conventions) so idiomatic patterns like Go table-driven tests or pytest bare asserts are not falsely flagged. - Use Case: Point the Skill at a flaky pytest suite and receive a report identifying Thread.Sleep-style timing dependencies, shared module-level state causing order dependence, and tests with no assertions, each with a concrete fix. ## Quick Start Ask the agent to audit the tests in your project for anti-patterns and quality issues, for example by saying "review my test suite and tell me what's wrong with it".

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 anti-patterns in my test suite?▼

Point the Skill at your test files or project directory and it scans for issues like missing assertions, swallowed exceptions, and flaky timing dependencies. Findings are grouped by severity with specific file and line locations plus concrete fixes.

What test frameworks does test anti-pattern detection support?▼

It supports .NET (xUnit, NUnit, MSTest), Python/pytest, TypeScript/Jest, Java/JUnit, Go, Ruby/RSpec, Rust, C++ (GoogleTest, Catch2), and Pester. Language-specific extension files define framework-specific markers for sleeps, skips, and setup/teardown.

Can this skill write or fix my tests automatically?▼

No, it is a diagnostic review tool only. It reports anti-patterns with suggested before/after fixes, but writing new tests or running test suites is explicitly out of scope and delegated to other skills.

Why do my tests pass but still have quality problems?▼

Tests can pass while verifying nothing, for example when they lack assertions, catch exceptions silently, or assert a value against itself. The audit flags these as Critical because they give false confidence in code correctness.

Does the audit flag idiomatic patterns like Go table-driven tests?▼

No, the severity calibration explicitly excludes idiomatic patterns. Go table-driven loops, pytest bare asserts, and separate boundary-condition tests are recognized as valid practices and are not flagged.