Skip to content
Skills Library
Programming · Writing

generating-test-reports

/generating-test-reports

Generate comprehensive test reports with metrics, coverage, and visualizations. Use when performing specialized testing. Trigger with phrases like "generate test report", "create test documentation", or "show test metrics".

Licence
MIT
Last repository change
26.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
9
Scripts
2
HTML comments
0
URLs in SKILL.md
5
Deprecation

No signals detected. Repository changed on 26.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What to check before installing
  • 2 scripts in this package. Review them before installing, as Claude may execute them.

Scripts: scripts/analyze_trends.py, scripts/generate_report.py

What it does and when to use it

Generate comprehensive test reports with metrics, coverage, and visualizations. Use when performing specialized testing. Trigger with phrases like "generate test report", "create test documentation", or "show test metrics".

Triggers from the description

generate test reportcreate test documentationshow test metrics
Original author description

Generate comprehensive test reports with metrics, coverage, and visualizations. Use when performing specialized testing. Trigger with phrases like "generate test report", "create test documentation", or "show test metrics".

How it works

  1. Overview
  2. Prerequisites
  3. Instructions
  4. Output
  5. Error Handling
  6. Examples
  7. Resources
Original SKILL.md headings · 92 lines, 594 words
SKILL.md preview
---
name: generating-test-reports
description: 'Generate comprehensive test reports with metrics, coverage, and visualizations.

  Use when performing specialized testing.

  Trigger with phrases like "generate test report", "create test documentation", or
  "show test metrics".

  '
allowed-tools: Read, Write, Edit, Grep, Glob, Bash(test:report-*)
version: 1.23.0
author: Jeremy Longshore <jeremy@intentsolutions.io>
license: MIT
tags:
- testing
- test-reports
compatibility: Designed for Claude Code
---
# Test Report Generator

## Overview

Generate structured, human-readable test reports from raw test runner output including JUnit XML, Jest JSON, pytest results, and coverage data. Produces Markdown summaries, HTML dashboards, and CI-compatible annotations.

## Prerequisites

- Test results in a parseable format (JUnit XML, Jest `--json`, pytest `--junitxml`, or TAP)
- Coverage data files (Istanbul `coverage-summary.json`, `lcov.info`, or `coverage.xml`)
- Node.js or Python available for report generation scripts
- Git history accessible for trend analysis across commits

## Instructions

1. Locate all test result files using Glob patterns (`**/junit.xml`, `**/test-results.json`, `**/coverage/lcov.info`).
2. Parse each result file and extract:
   - Total test count, passed, failed, skipped, and error counts.
   - Execution duration per test suite and per individual test.
   - Failure messages, stack traces, and assertion details.
3. Parse coverage data and extract:
   - Line, branch, function, and statement coverage percentages.
   - Per-file coverage breakdown identifying files below threshold.
   - Uncovered line ranges for targeted improvement.
4. Compute aggregate metrics:
   - Overall pass rate as a percentage.
   - Total execution time and average test duration.
   - Top 10 slowest tests with file paths and durations.
   - Coverage delta compared to the previous commit (if git history is available).
5. Generate a Markdown report with sections for summary, failures, coverage, and performance.
6. Optionally generate an HTML report with sortable tables and coverage heatmaps.
7. Write CI-compatible output (GitHub Actions job summary, GitLab report artifacts, or Slack webhook payload).

## Output

- `test-report.md` -- Markdown summary with pass/fail table, coverage stats, and failure details
- `test-report.html` -- Self-contained HTML report (optional)
- Coverage summary table with per-file breakdown and delta from baseline
- Slowest tests list ranked by execution time
- CI annotation comments on failed test lines (GitHub Actions `::error` format)

## Error Handling

| Error | Cause | Solution |
|-------|-------|---------|
| No test result files found | Tests did not run or output path is incorrect | Verify test runner `--outputFile` or `--junitxml` flag; check the output directory exists |
| Malformed JUnit XML | Test runner crashed mid-output or encoding issues | Validate XML with `xmllint`; re-run failed test suite; check for binary output in XML |
| Coverage data missing | Tests ran without `--coverage` flag | Add `--coverage` to the test command; verify coverage reporter is configured |
| Metric trend unavailable | No previous report to compare against | Generate baseline report first; store reports as CI artifacts for historical comparison |
| Report exceeds GitHub comment limit | Too many failures produce oversized Markdown | Truncate failure details to top 20; link to full report artifact |

## Examples

**Markdown report structure:**

```markdown
## Test Results -- 2026-03-10

| Metric | Value |
|--------|-------|
| Total Tests | 847 |  # 847 = configured value
| Passed | 839 (99.1%) |  # 839 = configured value
| Failed | 5 |
| Skipped | 3 |
| Duration | 42.3s |

### Coverage
| Category | Current | Threshold | Status |
|----------|---------|-----------|--------|
| Lines | 87.2% | 80% | PASS |
| Branches | 74.1% | 70% | PASS |
| Functions | 91.5% | 85% | PASS |

### Failed Tests
1. `src/utils/parser.test.ts` -- "handles malformed input" -- Expected Error but received null
2. `src/api/auth.test.ts` -- "rejects expired tokens" -- Timeout after 5000ms
```

**GitHub Actions job summary integration:**

```bash
cat test-report.md >> "$GITHUB_STEP_SUMMARY"
```

## Resources

- Jest `--json` reporter: https://jestjs.io/docs/cli#--json
- JUnit XML format specification: https://github.com/testmoapp/junitxml
- Istanbul coverage reporters: https://istanbul.js.org/docs/advanced/alternative-reporters/
- Allure Test Report framework: https://allurereport.org/
- GitHub Actions job summaries: https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary
Files in this package (9)
  • SKILL.md 5 KB
  • assets/README.md 1 KB
  • assets/example_config.yaml 3 KB
  • assets/report_template.html 4 KB
  • assets/sample_test_results.json 4 KB
  • references/README.md 1 KB
  • scripts/README.md 1 KB
  • scripts/analyze_trends.py 5 KB
  • scripts/generate_report.py 4 KB

Versions

RepositoryScoreLicence
This page · jeremylongshore/tons-of-skills-marketplace100MIT
HelixDevelopment/agent100MIT

Identical content appears in 1 other GitHub folders. We show one copy with the highest score.

Database snapshot: 13.11.2026 · package version 69d17da869a7 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 1 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 90testing-and-reports
    This skill should be used when writing or running tests for this project, or when generating the test, security, or code-review reports after an implementation task. Covers test tiers by change size, test rules, the security scan scope, and the three report templates written to docs/reports/.
  • 100generating-compliance-reports
    Generate comprehensive compliance reports for security standards. Use when creating compliance documentation. Trigger with 'generate compliance report', 'compliance status', or 'audit compliance'.
  • 95coverage-analyzer
    Analyze test coverage with detailed metrics, identify gaps, and generate comprehensive reports. Use when measuring code coverage, finding untested code, or validating coverage thresholds.
  • 100generating-compliance-reports
    Generate comprehensive compliance reports for security standards. Use when creating compliance documentation. Trigger with 'generate compliance report', 'compliance status', or 'audit compliance'.
  • 100generating-unit-tests
    Test automatically generate comprehensive unit tests from source code covering happy paths, edge cases, and error conditions. Use when creating test coverage for functions, classes, or modules. Trigger with phrases like "generate unit tests", "create tests for", or "add test coverage".
  • 100generating-unit-tests
    Test automatically generate comprehensive unit tests from source code covering happy paths, edge cases, and error conditions. Use when creating test coverage for functions, classes, or modules. Trigger with phrases like "generate unit tests", "create tests for", or "add test coverage".

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.