test-anti-patterns

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

Updated Aug 9, 2026
One-click install
npx skills add https://github.com/adinj00/player-performance --skill test-anti-patterns-adinj00
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-anti-patterns
Source: https://github.com/adinj00/player-performance/tree/main/.agents/skills/test-anti-patterns
Command: npx skills add https://github.com/adinj00/player-performance --skill test-anti-patterns-adinj00

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. This Skill audits existing test code to find anti-patterns like missing assertions, swallowed exceptions, and order-dependent tests, then ranks findings by severity so you know what to fix first. ## Core Features & Use Cases - Multi-language anti-pattern detection: Scans tests in .NET, Python/pytest, TypeScript/Jest, Java, Go, Ruby, Rust, C++, and PowerShell for Critical, High, Medium, and Low severity issues. - Severity-ranked reporting: Produces a structured report with specific file and line locations, explanations, and concrete before/after fixes for Critical and High findings. - False-positive calibration: Recognizes idiomatic patterns like Go table-driven tests and pytest bare asserts, and honestly reports when tests are well-written. - Use Case: Point the Skill at a flaky pytest suite and receive a report identifying un-awaited async assertions as Critical, shared module-level state as High, and magic values as Medium, each with a targeted fix. ## Quick Start Audit the test files in my project's tests directory for anti-patterns and give me a severity-ranked report with fixes.

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?

Provide the test files or directory to audit, and the Skill scans them against a catalog of anti-patterns grouped by severity. It reports each finding with the file, method, and line, plus a concrete fix for Critical and High issues.

What test frameworks does test anti-pattern detection support?

It supports xUnit, NUnit, and MSTest for .NET, pytest for Python, Jest and Vitest for TypeScript, JUnit for Java, Go testing, RSpec for Ruby, Rust test, Pester for PowerShell, and GoogleTest, Catch2, and doctest for C++.

Can this tool write or fix my tests automatically?

No, it is a diagnostic review tool only. It identifies problems and suggests targeted fixes with before/after examples, but writing new tests or applying fixes is delegated to other skills like code-testing-agent or writing-mstest-tests.

Why does my async test pass even when the assertion should fail?

Un-awaited async assertions silently pass, such as expect(promise).resolves without await in Jest or Assert.ThrowsAsync without await in xUnit. The Skill flags these as Critical findings because they give false confidence.

When should I not use a test anti-pattern audit?

Avoid it for writing new tests, running tests, framework migrations, or measuring code coverage. It also does not replace the academic test-smell catalog; use test-smell-detection for a formal taxonomy-based audit.