Test Reporting & Dashboards
БесплатноБез исполняемых скриптовНе проверенBuilding test reporting dashboards with real-time execution metrics, trend analysis, flaky test detection, coverage visualization, and integration with…
от PramodDutta★ 253 звезды на GitHubОб этом скилле
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
Установить Test Reporting & Dashboards в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Test Reporting & Dashboards?
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.
Как установить скилл Test Reporting & Dashboards?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Test Reporting & Dashboards запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
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…
от 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…
от 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…
от 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…
от Anthropic