SP

speckit.tester

Detects and runs test suites with coverage reporting for various frameworks.

Install

mkdir -p .claude/skills/speckit-tester && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/9746" && unzip -o skill.zip -d .claude/skills/speckit-tester && rm skill.zip

Installs to .claude/skills/speckit-tester

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Execute tests, measure coverage, and report results.
52 charsno explicit “when” trigger
Beginner

Key capabilities

  • Detect test frameworks
  • Execute test suites
  • Measure code coverage
  • Report test failures

How it works

The skill detects the project's testing framework, runs tests with coverage instrumentation, and parses the output into a structured report.

Inputs & outputs

You give it
Project directory
You get back
Test report with coverage

When to use speckit.tester

  • Running test suites
  • Generating coverage reports
  • Debugging failed tests
  • Checking test execution time

About this skill

User Input

$ARGUMENTS

You MUST consider the user input before proceeding (if not empty).

Role

You are the Antigravity Test Runner. Your role is to execute test suites, measure code coverage, and provide actionable test reports.

Task

Outline

Detect the project's test framework, execute tests, and generate a comprehensive report.

Execution Steps

  1. Detect Test Framework:

    # Check package.json for test frameworks
    cat package.json 2>/dev/null | grep -E "(jest|vitest|mocha|ava|tap)"
    
    # Check for Python test frameworks
    ls pytest.ini setup.cfg pyproject.toml 2>/dev/null
    
    # Check for Go tests
    find . -name "*_test.go" -maxdepth 3 2>/dev/null | head -1
    
    IndicatorFramework
    jest in package.jsonJest
    vitest in package.jsonVitest
    pytest.ini or [tool.pytest]Pytest
    *_test.go filesGo test
    Cargo.toml + #[test]Cargo test
  2. Run Tests with Coverage:

    FrameworkCommand
    Jestnpx jest --coverage --json --outputFile=coverage/test-results.json
    Vitestnpx vitest run --coverage --reporter=json
    Pytestpytest --cov --cov-report=json --json-report
    Gogo test -v -cover -coverprofile=coverage.out ./...
    Cargocargo test -- --test-threads=1
  3. Parse Test Results: Extract from test output:

    • Total tests
    • Passed / Failed / Skipped
    • Execution time
    • Coverage percentage (if available)
  4. Identify Failures: For each failing test:

    • Test name and file location
    • Error message
    • Stack trace (truncated to relevant lines)
    • Suggested fix (if pattern is recognizable)
  5. Generate Report:

    # Test Report
    
    **Date**: [timestamp]
    **Framework**: [detected]
    **Status**: PASS | FAIL
    
    ## Summary
    
    | Metric | Value |
    |--------|-------|
    | Total Tests | X |
    | Passed | X |
    | Failed | X |
    | Skipped | X |
    | Duration | X.Xs |
    | Coverage | X% |
    
    ## Failed Tests
    
    ### [test name]
    **File**: `path/to/test.ts:42`
    **Error**: Expected X but received Y
    **Suggestion**: Check mock setup for...
    
    ## Coverage by File
    
    | File | Lines | Branches | Functions |
    |------|-------|----------|-----------|
    | src/auth.ts | 85% | 70% | 90% |
    
    ## Next Actions
    
    1. Fix failing test: [name]
    2. Increase coverage in: [low coverage files]
    
  6. Output:

    • Display report in terminal
    • Optionally save to FEATURE_DIR/test-report.md

Operating Principles

  • Run All Tests: Don't skip tests unless explicitly requested
  • Preserve Output: Keep full test output for debugging
  • Be Helpful: Suggest fixes for common failure patterns
  • Respect Timeouts: Set reasonable timeout (5 min default)

When not to use it

  • When skipping tests without explicit request

Limitations

  • Default timeout of 5 minutes

How it compares

It provides a unified interface for running tests and generating coverage reports across different frameworks.

Compared to similar skills

speckit.tester side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
speckit.tester (this skill)05moReviewBeginner
e2e-testing-patterns82moNo flagsIntermediate
testing-workflow169moReviewIntermediate
perf-lighthouse135moReviewIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

Search skills

Search the agent skills registry