check-test-quality

Validate pytest test suites for AAA pattern, naming conventions, and coverage thresholds.

Updated Mar 19, 2026
One-click install
npx skills add https://github.com/sunLeee/optimization --skill check-test-quality
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: check-test-quality
Source: https://github.com/sunLeee/optimization/tree/main/.claude/skills/quality/check/check-test-quality
Command: npx skills add https://github.com/sunLeee/optimization --skill check-test-quality

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill validates test quality and conformity to convention-testing rules, helping teams maintain reliable, readable and maintainable test suites.

Core Features & Use Cases

  • Structure validation: verifies test directories and files follow the standard AAA pattern.
  • Naming conventions: checks that test names follow the recommended test_<function><scenario><expected> format.
  • Coverage reporting: runs tests and reports on coverage and potential quality violations, enabling targeted improvements.

Quick Start

Validate the test suite by running the check-test-quality tool on a target path.

Frequently Asked Questions about check-test-quality

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

FAQPage Schema
How do I check pytest test quality and AAA pattern conformance?

To check pytest test quality, you validate the test suite against standard AAA pattern structures, naming conventions, and coverage thresholds, generating a report of any violations and remediation steps needed.

What is the recommended pytest naming convention for test functions?

The recommended pytest naming convention requires test functions to follow the test_<function>_<scenario>_<expected> format, ensuring test names clearly describe the targeted function, the specific scenario, and the expected outcome.

How do I enforce test coverage thresholds in a Python project?

You enforce test coverage thresholds by validating the codebase test suite to run tests, check coverage metrics, and produce a structured report highlighting potential quality violations and targeted improvement areas.

Can I validate both unit and integration tests using convention-testing rules?

Yes, you can validate both unit and integration tests using convention-testing rules, applying structure validation to test directories and files to ensure they follow the standard AAA pattern across the entire test suite.