Skip to content
Development
Command

/analyze-tests

Analyze Python test suites for quality, coverage, and improvement opportunities.

From plugin
claude-night-market
343162 skills60 agents162 commands1 MCP
> /plugin marketplace add athola/claude-night-market

Command definition

analyze-tests.md
name: analyze-tests
description: Analyze Python test suites for quality, coverage, and improvement opportunities.

Analyze Tests Command

Usage

Analyzes Python test suites for quality, coverage, and improvement opportunities.

Basic Usage

/analyze-tests

Analyzes tests in the current directory.

Specific Path

/analyze-tests tests/unit/

Analyzes tests in a specific directory.

What It Does

1. **Discovers Tests**: Finds all test files matching `test_*.py` or `*_test.py` 2. **Coverage Analysis**: Reports test coverage metrics 3. **Quality Assessment**: Evaluates test structure, naming, and patterns 4. **Improvement Suggestions**: Provides specific recommendations 5. **Gap Identification**: Identifies untested code paths

Analysis Categories

  • **Structure**: Test organization, fixture usage, conftest patterns
  • **Coverage**: Line coverage, branch coverage, missing lines
  • **Quality**: Test naming, assertions, independence
  • **Patterns**: AAA pattern adherence, parameterization usage
  • **Performance**: Test execution time, slow test identification

Output Format

For each test module:

  • Test count and coverage percentage
  • Pattern compliance score
  • Specific improvement recommendations
  • Critical issues requiring attention

Examples

# Analyze all tests with coverage
/analyze-tests --coverage

# Focus on quality patterns
/analyze-tests --quality-only

# Generate detailed report
/analyze-tests --report detailed

Integration

Uses the `python-testing` skill's analysis tools:

  • `test-analyzer`: Quality and pattern analysis
  • `coverage-reporter`: Coverage metrics and gaps
  • `test-runner`: Execution and timing analysis

This command helps maintain high-quality test suites that follow pytest best practices.

Read more
@athola
Ships withclaude-night-market

A plugin marketplace for Claude Code. Install only the plugins you need to run git workflows, code review, spec-driven development, and autonomous agents from inside your Claude Code session.

343200 skills60 agents1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
343
Star history of athola/claude-night-market on GitHub, a chart by star-history.com

Other commands on claude-night-market.

More commands from other plugins.

build
Auto-invoked

build

Command

Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.

@addyosmani@addyosmaniInstall Command