技能 编程开发 测试报告生成器

测试报告生成器

v20260222
generating-test-reports
汇总多个框架的测试结果,计算覆盖率、通过率和趋势,并生成 HTML、PDF 或 JSON 报告,便于 CI/CD 运行后的测试报告、覆盖率分析、失败排查或历史对比。
获取技能
114 次下载
概览

Overview

This skill empowers Claude to create detailed test reports, providing insights into code coverage, test performance trends, and failure analysis. It supports multiple output formats for easy sharing and analysis.

How It Works

  1. Aggregating Results: Collects test results from various test frameworks used in the project.
  2. Calculating Metrics: Computes coverage metrics, pass rates, test duration, and identifies trends.
  3. Generating Report: Produces comprehensive reports in HTML, PDF, or JSON format based on the user's preference.

When to Use This Skill

This skill activates when you need to:

  • Generate a test report after a test run.
  • Analyze code coverage to identify areas needing more testing.
  • Identify trends in test performance over time.

Examples

Example 1: Generating an HTML Test Report

User request: "Generate an HTML test report showing code coverage and failure analysis."

The skill will:

  1. Aggregate test results from all available frameworks.
  2. Calculate code coverage and identify failing tests.
  3. Generate an HTML report summarizing the findings.

Example 2: Comparing Test Results Over Time

User request: "Create a report comparing the test results from the last two CI/CD runs."

The skill will:

  1. Retrieve test results from the two most recent CI/CD runs.
  2. Compare key metrics like pass rate and duration.
  3. Generate a report highlighting any regressions or improvements.

Best Practices

  • Clarity: Specify the desired output format (HTML, PDF, JSON) for the report.
  • Scope: Define the scope of the report (e.g., specific test suite, time period).
  • Context: Provide context about the project and testing environment to improve accuracy.

Integration

This skill can integrate with CI/CD pipelines to automatically generate and share test reports after each build. It also works well with other analysis plugins to provide more comprehensive insights.

信息
Category 编程开发
Name generating-test-reports
版本 v20260222
大小 2.47KB
更新时间 2026-02-26
语言