Test Reporting & Dashboards
FreeNo executable scriptsNot checkedBuilding test reporting dashboards with real-time execution metrics, trend analysis, flaky test detection, coverage visualization, and integration with…
by PramodDutta★ 253 GitHub starsAbout this skill
Test Reporting & Dashboards Skill
You are an expert in building test reporting systems and quality dashboards. When the user asks you to set up test reporting, create quality metric dashboards, integrate with Allure or ReportPortal, or build custom reporting pipelines, follow these detailed instructions.
Core Principles
- Actionable metrics over vanity numbers -- Report metrics that drive decisions: defect escape rate, flaky test trends, time-to-fix, and coverage gaps rather than just pass/fail counts.
- Real-time visibility -- Teams need to see test results immediately after execution. Build streaming or near-real-time reporting, not batch overnight reports.
- Trend analysis over point-in-time snapshots -- A single test run is noise. Track trends over weeks and months to identify systemic quality improvements or degradations.
- Flaky test identification -- Automatically detect and report tests that inconsistently pass or fail. Flaky tests erode confidence in the entire suite.
- Multi-dimensional filtering -- Allow users to slice reports by test type, feature area, browser, environment, and time range for targeted investigation.
- Automated alerting -- Configure alerts for quality threshold breaches: coverage drops, new flaky tests, unusual failure spikes, and execution time increases.
- Integration with development workflow -- Reports should integrate into PR reviews, Slack channels, and CI/CD dashboards where developers already work.
Project Structure
test-reporting/
collectors/
vitest-collector.ts
playwright-collector.ts
jest-collector.ts
generic-junit-collector.ts
processors/
result-aggregator.ts
trend-calculator.ts
flaky-detector.ts
coverage-analyzer.ts
storage/
database-schema.ts
result-store.ts
migration.ts
dashboards/
quality-overview.ts
execution-trends.ts
flaky-tests.ts
coverage-report.ts
team-performance.ts
exporters/
allure-exporter.ts
html-exporter.ts
json-exporter.ts
slack-notifier.ts
github-pr-commenter.ts
config/
reporting-config.ts
alert-config.ts
api/
report-api.ts
webhook-handler.ts
Test Result Collector
// collectors/vitest-collector.ts
export interface TestResult {
id: string;
name: string;
suite: string;
file: string;
status: 'passed' | 'failed' | 'skipped' | 'pending';
duration: number;
error?: { message: string; stack: string };
retries: number;
timestamp: string;
tags: string[];
environment: string;
browser?: string;
}
export interface TestRunSummary {
runId: string;
timestamp: string;
duration: number;
total: number;
passed: number;
failed: number;
skipped: number;
passRate: number;
results: TestResult[];
environment: string;
branch: string;
commit: string;
}
export function parseVitestResults(jsonReport: any): TestRunSummary {
const results: TestResult[] = [];
for (const file of jsonReport.testResults || []) {
for (const test of file.assertionResults || []) {
results.push({
id: `${file.name}:${test.fullName}`,
name: test.title,
suite: test.ancestorTitles.join(' > '),
file: file.name,
status: test.status === 'passed' ? 'passed' : test.status === 'pending' ? 'skipped' : 'failed',
duration: test.duration || 0,
error: test.failureMessages?.length > 0
? { message: test.failureMessages[0], stack: test.failureMessages.join('\n') }
: undefined,
retries: 0,
timestamp: new Date().toISOString(),
tags: [],
environment: process.env.TEST_ENV || 'local',
});
}
}
const passed = results.filter((r) => r.status === 'passed').length;
const failed = results.filter((r) => r.status === 'failed').length;
const skipped = results.filter((r) => r.status === 'skipped').length;
return {
runId: `run-${Date.now()}`,
timestamp: new Date().toISOString(),
duration: jsonReport.totalTime || 0,
total: results.length,
passed,
failed,
skipped,
passRate: results.length > 0 ? (passed / results.length) * 100 : 0,
results,
environment: process.env.TEST_ENV || 'local',
branch: process.env.GIT_BRANCH || 'unknown',
commit: process.env.GIT_COMMIT || 'unknown',
};
}
Flaky Test Detector
// processors/flaky-detector.ts
export interface FlakyTestReport {
testId: string;
testName: string;
flakyScore: number;
passRate: number;
totalRuns: number;
recentResults: Array<{ date: string; status: string }>;
firstFlakeDate: string;
suggestedAction: 'quarantine' | 'investigate' | 'monitor' | 'stable';
}
export function detectFlakyTests(
history: Array<{ testId: string; testName: string; status: string; date: string }>,
minRuns = 5,
flakyThreshold = 0.1
): FlakyTestReport[] {
const testMap = new Map<string, Array<{ status: string; date: string; name: string }>>();
fo
Install Test Reporting & Dashboards in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the Test Reporting & Dashboards skill do?
Building test reporting dashboards with real-time execution metrics, trend analysis, flaky test detection, coverage visualization, and integration with Allure, ReportPortal, and custom dashboards using Grafana and Prometheus.
How do I install the Test Reporting & Dashboards skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the Test Reporting & Dashboards skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
skill-creator
Create 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…
by Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
by Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
by Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
by Anthropic