foryourhealth111-pixel/Vibe-Skills / bundled/skills/generating-test-reports
generating-test-reports
VerifiedGenerate structured test reports with pass/fail rollups, coverage summaries, and test artifacts. Use when the user is asking for test-result packaging or delivery, not for root-cause debugging or feature implementation.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 1.4 KB |
| assets/README.md | markdown | 285 B |
| assets/example_config.yaml | config | 2.6 KB |
| assets/report_template.html | other | 3.6 KB |
| assets/sample_test_results.json | config | 3.6 KB |
| references/README.md | markdown | 387 B |
| scripts/README.md | markdown | 592 B |
| scripts/aggregate_results.py | script | 2.9 KB |
| scripts/analyze_trends.py | script | 4.7 KB |
| scripts/generate_report.py | script | 3.7 KB |
scripts/aggregate_results.py
View on GitHub#!/usr/bin/env python3
"""
test-report-generator - aggregate_results.py
Aggregates test results from various frameworks (pytest, JUnit, etc.) into a unified data structure.
Generated: 2025-12-10 03:48:17
"""
import os
import sys
import json
import argparse
from pathlib import Path
from datetime import datetime
def process_file(file_path: Path) -> bool:
"""Process individual file."""
if not file_path.exists():
print(f"β File not found: {file_path}")
return False
print(f"π Processing: {file_path}")
# Add processing logic here based on skill requirements
# This is a template that can be customized
try:
if file_path.suffix == '.json':
with open(file_path) as f:
data = json.load(f)
print(f" β Valid JSON with {len(data)} keys")
else:
size = file_path.stat().st_size
print(f" β File size: {size:,} bytes")
return True
except Exception as e:
print(f" β Error: {e}")
return False
def process_directory(dir_path: Path) -> int:
"""Process all files in directory."""
processed = 0
failed = 0
for file_path in dir_path.rglob('*'):
if file_path.is_file():
if process_file(file_path):
processed += 1
else:
failed += 1
return processed, failed
def main():
parser = argparse.ArgumentParser(
description="Aggregates test results from various frameworks (pytest, JUnit, etc.) into a unified data structure."
)
parser.add_argument('input', help='Input file or directory')
parser.add_argument('--output', '-o', help='Output directory')
parser.add_argument('--verbose', '-v', action='store_true', help='Verbose output')
parser.add_argument('--config', '-c', help='Configuration file')
args = parser.parse_args()
input_path = Path(args.input)
print(f"π test-report-generator - aggregate_results.py")
print(f" Category: testing")
print(f" Plugin: test-report-generator")
print(f" Input: {input_path}")
if args.config:
if Path(args.config).exists():
with open(args.config) as f:
config = json.load(f)
print(f" Config: {args.config}")
# Process input
if input_path.is_file():
success = process_file(input_path)
result = 0 if success else 1
elif input_path.is_dir():
processed, failed = process_directory(input_path)
print(f"\nπ SUMMARY")
print(f" β
Processed: {processed}")
print(f" β Failed: {failed}")
result = 0 if failed == 0 else 1
else:
print(f"β Invalid input: {input_path}")
result = 1
if result == 0:
print("\nβ
Completed successfully")
else:
print("\nβ Completed with errors")
return result
if __name__ == "__main__":
sys.exit(main())
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the work | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation code | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |