首页/ AI 技能 / @skilllib/skill-2117939930272416358
Skill站外收录 @skilllib/skill-2117939930272416358

test-report-generator

生成面向不同受众的测试报告,整合多框架测试结果并计算覆盖率、通过率、耗时等核心指标,支持趋势分析与失败归因,可输出 HTML、PDF 或 JSON 格式,适用于质量评估、问题定位及历史性能对比场景。

0.0 (0) 14 次安装 原作者 编程导航
收录于 2026-01-22

Skills.MD

## 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.

评论 0

还没有评论,来抢沙发。