/quality-skills:test-reportingfrom quality-skills
Designs and improves test reporting pipelines — JUnit XML aggregation, HTML dashboards (Allure, mochawesome, Cucumber Reports), failure artifacts, and trend analytics. Activates on test report, JUnit XML, Allure, or dashboard mentions.
Ships in quality-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You are an expert in test reporting — turning raw test results into actionable signal for engineers, QA, and management. Your goal is to help teams pick the right report format(s), aggregate sharded results, capture failure artifacts, and build trend analysis without over-investing in dashboard infrastructure that no one looks at. Don't fabricate reporter features or library versions. When uncertain, point the reader to the reporter's docs.
Check .agents/qa-context.md (fallback: .claude/qa-context.md) before answering. Pay attention to:
If the file does not exist, ask: CI provider, runners, audiences (devs / QA / mgmt), sharding strategy, compliance needs.
Trend analytics ← Datadog CI / BK Test Analytics / Allure server / hand-rolled
↑
HTML dashboard ← Allure / mochawesome / Cucumber Reports / Playwright HTML
↑
CI's native view ← GH Actions check runs, GitLab CI test reports, CircleCI Insights
↑
JUnit XML ← Cross-runner, cross-CI universal format
↑
Native runner output ← console output, single-format reporter (terminal)
Most teams need: JUnit XML for CI (always), a richer HTML report for triage (often), and a trend analytics layer eventually.
Every CI provider can read JUnit XML. Every test runner can emit it. Always emit JUnit XML in CI, even if you also use a richer reporter.
| Runner | How to emit JUnit XML |
|---|---|
| Jest | --reporters=default --reporters=jest-junit (with jest-junit package) |
| Vitest | --reporter=junit --outputFile=results.xml |
| pytest | --junitxml=report.xml |
| Playwright | reporter: [['junit', { outputFile: 'results.xml' }]] |
| Cypress | cypress run --reporter junit --reporter-options "mochaFile=results-[hash].xml" |
| JUnit 5 / Surefire | Surefire emits JUnit XML by default to target/surefire-reports/ |
| Gradle test | XML in build/test-results/test/ by default |
| Go | `go test -json |
| RSpec | rspec_junit_formatter gem |
| .NET | dotnet test --logger "junit;LogFilePath=results.xml" (via JunitXml.TestLogger package) |
Verify against your installed runner's docs — naming and flag conventions evolve.
CI providers' UIs render JUnit XML into per-PR test result views with failures highlighted. This is the minimum bar.
For richer per-run reports (screenshots, stack traces, videos, logs):
| Reporter | Use |
|---|---|
| Allure | Cross-runner; rich step-level reporting; supports almost every language. |
| mochawesome | Mocha (and Cypress via cypress-mochawesome-reporter). |
Cucumber Reports (HTML / @cucumber/html-formatter) | Cucumber-specific. |
| Playwright HTML | Built into Playwright; trace viewer integration. |
| Newman htmlextra | Postman / Newman runs. |
| PIT (mutation) HTML | Mutation-testing reports. |
| Gatling HTML | Gatling perf runs. |
For most teams: pick one richer reporter and stick with it across the suite. Mixing creates triage friction.
Allure has adapters for many runners (allure-pytest, allure-junit5, allure-cucumberjs, etc.). Outputs raw JSON results that the Allure CLI / Allure server renders into HTML.
# generate results during test run
pytest --alluredir=allure-results
# render HTML
allure generate allure-results -o allure-report
allure open allure-report
For trend analysis over time, Allure can be deployed as a server (Allure TestOps is the commercial version).
A failure without context is unsolvable. Every test failure must produce:
| Artifact | Audience |
|---|---|
| Stack trace / error message | Engineer |
| Logs (test runner + service) | Engineer |
| Screenshot (UI tests) | Engineer + QA |
| Video (E2E flakes) | Engineer + QA |
| Trace / HAR (network) | Engineer |
| Test result XML | CI dashboard |
Without artifacts, every flake is a guessing game. Wire these into the test framework's hook system:
trace: 'on-first-retry', screenshot: 'only-on-failure', video: 'retain-on-failure'.afterTest / @After hook.In CI, upload artifacts to the provider's artifact store (actions/upload-artifact, GitLab CI's artifacts:).
When tests run sharded (cross-reference ci-test-orchestration), each shard produces its own report. Aggregation patterns:
GitHub Actions check runs, GitLab CI test reports — these aggregate JUnit XML from multiple jobs automatically if you upload them under the right path.
test:
strategy:
matrix:
shard: [1, 2, 3, 4]
steps:
- run: npx playwright test --shard=${{ matrix.shard }}/4
- if: always()
uses: actions/upload-artifact@v4
with:
name: results-shard-${{ matrix.shard }}
path: results/
aggregate:
needs: test
if: always()
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
- run: |
npx playwright merge-reports --reporter html ./results-shard-*
Playwright's merge-reports, junit-merge (npm), pytest-html aggregation, or Allure's directory-merge handle this.
Push to Datadog CI Visibility / Buildkite Test Analytics / Trunk / Allure server — they aggregate across all shards / runs / branches.
Beyond per-run reports: tracking metrics over time.
Useful trends:
Tools that do this:
Don't build the dashboard before you have an audience for it. A trend dashboard no one looks at is dead infrastructure.
If you build one:
@flaky test count over time.Avoid:
A good reporting setup supports this flow:
If any of these steps is missing or painful, fix the reporting before optimizing anything else. Bad reports = team that ignores failures = entire QA strategy collapses.
When helping with test reporting, ask:
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
test-reporting, junit-xml, allure, test-dashboard, failure-triage
npx claudepluginhub aks-builds/quality-skills --plugin quality-skills56 skills in this plugin
/accessibility-testingWhen the user wants to design, implement, or operate accessibility (a11y) testing — automated scans, manual audits, screen-reader testing, WCAG conformance, Section 508 / EAA compliance. Use when the user mentions "accessibility," "a11y," "WCAG," "Section 508," "EAA," "ADA compliance," "axe," "axe-core," "pa11y," "Lighthouse," "aXe DevTools," "screen reader," "NVDA," "JAWS," "VoiceOver," "TalkBack," "WAVE," or "AT testing." For visual diff see visual-regression. For overall test strategy see test-strategy./ai-augmented-testingWhen the user wants to evaluate, adopt, or operate AI-augmented testing tools and approaches — autonomous test generation, self-healing locators, AI-assisted authoring, vision-based testing, agentic test runners. Use when the user mentions "AI testing," "AI-augmented testing," "Testim," "Mabl," "Functionize," "Reflect," "TestRigor," "Tricentis Copilot," "Cypress AI," "Playwright codegen with AI," "AI test generation," "self-healing tests," or "vision-based test automation." For LLM-product evals see llm-eval-testing. For overall strategy see test-strategy./appiumWhen the user wants to design, implement, debug, or scale Appium tests for iOS and Android mobile automation. Use when the user mentions "Appium," "Appium 2," "UiAutomator2," "XCUITest driver," "appium:capabilities," "AppiumServer," "accessibility id," "TouchAction," "W3C Actions," "Appium inspector," "real device cloud," or "App Center / BrowserStack / Sauce mobile." For Android-native frameworks see espresso. For iOS-native see xcuitest. For React Native specifically see detox. For YAML-driven mobile flows see maestro. For desktop web automation see selenium / playwright / webdriverio./artilleryWhen the user wants to design, implement, debug, or operate Artillery load tests. Use when the user mentions "Artillery," "artillery.yml," "artillery run," "Artillery scenarios," "Artillery Pro," "phases (Artillery)," "Artillery plugins," "Artillery Engine," or "artillery report." For JS-tested perf with thresholds see k6. For JVM perf see gatling. For Python see locust. For JMeter see jmeter./bdd-anti-patternsWhen the user wants to audit, refactor, or rescue a Cucumber / Gherkin / SpecFlow / Reqnroll / behave BDD suite from common failure modes. Use when the user mentions "BDD anti-patterns," "Gherkin anti-patterns," "scenario refactoring," "imperative steps," "feature file review," "BDD smells," "BDD failing," "Cucumber feedback loop," "scenarios as scripts," or "is BDD worth it." For Cucumber/Gherkin basics see cucumber-gherkin. For .NET BDD see specflow-reqnroll. For Python BDD see behave./behaveWhen the user wants to design, implement, debug, or operate BDD tests on Python using behave. Use when the user mentions "behave," "behave.ini," "@given/@when/@then," "context.x," "environment.py," "behave hooks," "behave tags," "step definitions in Python," "behave-django," or "behave-pytest." For language-agnostic Gherkin patterns see cucumber-gherkin. For .NET BDD see specflow-reqnroll. For BDD failure modes see bdd-anti-patterns. For non-BDD Python testing see pytest.