/qa-test-reporting:allure-reportsfrom qa-test-reporting
Sets up Allure Report adapters for pytest, Jest, JUnit, TestNG, NUnit, or Mocha to produce rich HTML test reports with steps, attachments, history trends, and failure categories.
Ships in qa-test-reporting. 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.
None: SKILL.md is the whole skill.
Allure Report is "an open-source framework-agnostic test result visualization tool" that "transforms test execution data into clear, interactive HTML reports" (allure-docs). It "supports testing frameworks across JavaScript, Python, Java, C#, PHP, and Ruby" with 30+ adapters (allure-docs).
Allure's two-stage workflow:
allure-results/ directory.allure-results/, optionally merging in history from a previous
run for trend graphs.The two artifacts are kept separate intentionally: results are runner-emitted; the report is a static deliverable.
If the team only needs JUnit pass/fail and the CI already surfaces
that, see junit-xml-analysis -
that's a much lighter dependency.
Each runner has a per-language adapter that writes to
allure-results/. Examples:
| Framework | Package / coordinate | Output dir env var (typical) |
|---|---|---|
| pytest | pip install allure-pytest | --alluredir=allure-results |
| Jest | npm i -D allure-jest | outputFolder config |
| Mocha | npm i -D allure-mocha | outputFolder config |
| JUnit 5 | org.junit.platform:junit-platform-launcher + io.qameta.allure:allure-junit5 | allure.results.directory system property |
| TestNG | io.qameta.allure:allure-testng | allure.results.directory |
| NUnit / xUnit | NuGet Allure.NUnit / Allure.Xunit | allureConfig.json directory |
Adapter docs are at the framework-specific subpaths under
allurereport.org/docs/ (allure-docs).
The output of running tests with the adapter installed is a
directory of per-test JSON files (<uuid>-result.json,
<uuid>-container.json, plus attachment-<uuid>.<ext> files for
screenshots / logs).
Install the Allure CLI (allure-docs linked from "Installation"):
# Node-based (cross-platform):
npm install -g allure-commandline
# Or via Scoop / Homebrew / apt - see allurereport.org/docs/ install pages.
Generate from the results directory:
allure generate allure-results --clean -o allure-report
--clean removes the previous allure-report/ before regenerating;
-o sets the output dir.
To preview locally:
allure open allure-report
Or in one shot (useful in dev - runs a temp server with a freshly generated report):
allure serve allure-results
(See allurereport.org/docs/ for the CLI reference; specific flags
have evolved across Allure 2.x and Allure 3 - pin a version in CI to
avoid drift.)
Per allure-categories, categories.json placed in
allure-results/ defines custom failure classification. Each entry
matches by message regex, trace regex, and result statuses
(failed, broken, passed, skipped, unknown):
[
{
"name": "Ignored tests",
"messageRegex": ".*ignored.*",
"matchedStatuses": ["skipped"]
},
{
"name": "Infrastructure problems",
"messageRegex": ".*RuntimeException.*",
"matchedStatuses": ["broken"]
}
]
Per allure-categories, category objects also support
traceRegex (matches against stack trace) and flaky (boolean) to
mark a category as flaky-by-default.
"The array order determines the matching sequence Allure applies when categorizing test results." (allure-categories)
So order from most-specific to least-specific. A "DB connection refused" category should precede a generic "Infrastructure" category.
Per allure-history, history is what drives the trends panel ("first failed", "last passed", flake / retry rate over time):
"Allure Report uses a history ID to link test results across multiple runs. This identifier is automatically calculated based on the test's fully-qualified name and its parameters."
For Allure 2 (the broadly-deployed version), enabling history is manual (allure-history):
- Generate your initial report in the
allure-reportdirectory- Remove the
allure-resultsdirectory- Run tests
- Copy
allure-report/historysubdirectory toallure-results/history- Generate the next report
In CI, that becomes:
# Before running tests
mkdir -p allure-results
if [ -d previous-allure-report/history ]; then
cp -r previous-allure-report/history allure-results/
fi
# Run tests (writes to allure-results/)
npm test
# Generate
allure generate allure-results --clean -o allure-report
# Save the history slice for next time
# (Upload allure-report/ as an artifact; download into previous-allure-report/ on next run.)
Per allure-history: "If you follow such a routine regularly,
Allure will each time keep data from up to 20 latest reports in
allure-results/history."
For Allure 3 (allure-history):
"Allure 3 simplifies this by using a single JSONL history file. You configure it in your settings file with a
historyPathparameter."
Per allure-history:
"Retries: Multiple runs of the same test within a single launch (same
allure-resultsdirectory).""History: Links to the same test across different launches, enabling trend analysis and stability tracking."
Don't clear allure-results between retries within a run - that
collapses retry data. Do clear it between launches (different
commits / runs) - only history/ subdir is preserved.
# .github/workflows/test-with-allure.yml
name: test-with-allure
on:
pull_request:
push:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v4
with: { node-version: '20' }
- name: Restore previous Allure history
uses: actions/download-artifact@v4
with:
name: allure-history
path: previous-allure-report
continue-on-error: true # First run on a branch has no history
- name: Seed history into results dir
run: |
mkdir -p allure-results
if [ -d previous-allure-report/history ]; then
cp -r previous-allure-report/history allure-results/
fi
- name: Run tests with Allure adapter
run: npm test # adapter writes to allure-results/
- name: Install Allure CLI
run: npm install -g allure-commandline
- name: Generate report
if: always()
run: allure generate allure-results --clean -o allure-report
- name: Upload report
if: always()
uses: actions/upload-artifact@v4
with:
name: allure-report
path: allure-report
retention-days: 30
- name: Save history for next run
if: always() && github.ref == 'refs/heads/main'
uses: actions/upload-artifact@v4
with:
name: allure-history
path: allure-report/history
retention-days: 90
if: always() on the report-generation steps is critical - Allure
matters most on failure.
For Allure history hosted on GitHub Pages, the simple-elf/allure-report-action GitHub Action automates the publish-to-Pages
workflow (third-party, not first-party Allure tooling).
Allure's value compounds with metadata. The adapter exposes per-language helpers; the canonical labels are severity (blocker / critical / normal / minor / trivial), epic / feature / story (for BDD-style grouping), and owner.
# pytest example
import allure
@allure.severity(allure.severity_level.CRITICAL)
@allure.epic('Checkout')
@allure.feature('Promo codes')
@allure.story('Apply at checkout')
def test_apply_promo_lowercase():
...
// Jest / Mocha example
import { allure } from 'allure-jest';
allure.severity('critical');
allure.epic('Checkout');
allure.feature('Promo codes');
Severity drives the "blocker" / "critical" filter on the report's overview; epic / feature / story drive the BDD-grouped view. Without them, the report is a flat list - usable but missing Allure's main selling point.
| Anti-pattern | Why it fails | Fix |
|---|---|---|
| Skipping the history step | Trends panel is empty; retry/flake history can't be tracked across runs. | Wire the copy-history pattern (Step 4) per allure-history. |
Clearing allure-results mid-run | Retry information is lost - retries appear as separate failed launches. | Clear only between launches; preserve history/ subdir per allure-history. |
categories.json ordered least-specific first | Generic "Infrastructure" category catches everything; specific categories never match. | Order most-specific first per allure-categories. |
| Allure as a substitute for JUnit XML in PR gating | Allure's report is for humans, not gating; JUnit XML is the gate. | Emit both; gate on JUnit; surface Allure as artifact. |
| One Allure adapter version + a different CLI version | Schema drift between adapter (results writer) and CLI (results reader); empty / corrupt report. | Pin both to compatible versions; bump together per allure-docs. |
| Adapter installed but no metadata | Report is a flat pass/fail list - same value as JUnit XML. | Add severity / epic / feature / story (Step 7). |
Treating <uuid>-result.json files as durable | The file naming and schema are per-Allure-version internal contracts. | Don't post-process raw allure-results/ files; consume the generated allure-report/data/*.json instead. |
lcov-analysis / jacoco-analysis.categories.json schema (name,
messageRegex, traceRegex, matchedStatuses, flaky),
matching order, sample.junit-xml-analysis - leaner
alternative when only pass/fail + flake detection is needed.coverage-diff-reporter,
lcov-analysis,
lcov-analysis - coverage
side of the same PR review.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Pytest, Jest, JavaScript, Python, Java
10 skills in this plugin
/coverage-diff-reporterUse when a pull request needs readable coverage feedback rather than one total. Compares current and baseline coverage (LCOV, Cobertura or JSON) and reports per-file line and branch deltas, new files and hidden drops, with a one-line summary for the PR comment./coverage-py-analysisUse for any question or task about Python code coverage with pytest or unittest, including quick how-to questions, a CI gate on a minimum, and coverage that drops when tests run in parallel with xdist: coverage run, branch coverage, combining parallel data, .coveragerc source, omit and fail_under, and terminal, HTML, Cobertura XML, LCOV or JSON reports for CI./currents-integrationUse for any question about seeing Playwright flakiness, slowest tests or pass-rate trends across CI runs, or which tool tracks them. Sets up Currents.dev with @currents/playwright, currents.config.ts, the reporter, traces, videos and screenshots, and runs via npx pwc./jacoco-analysisUse for any question or task about Java, Kotlin, Scala or Groovy code coverage on Gradle or Maven, including a build that should fail below a minimum or a coverage report that comes out empty in CI: JaCoCo agent setup, HTML, XML and CSV reports, check rules such as 80% lines, the six counters, and JaCoCo XML to LCOV or Cobertura./junit-xml-analysisExplains CI test numbers that disagree with what the suite actually did - a 'slowest tests' list dominated by the wrong suite, a release gate or dashboard reading only the summary attributes on the suite element and never the cases below them, or a pass rate that quietly counts skipped tests as passes. Parses JUnit-format XML (the interchange format Jenkins, GitHub Actions, GitLab, Buildkite, and CircleCI all ingest) into per-suite and per-case metrics tables - passed / failed / errored / skipped, time, classname, message, stack - groups failures by classname for trend analysis, and separates new failures from flakes by cross-referencing the `flakyFailure` and rerun elements. Use when a report, gate, or metric derived from test results cannot be trusted./lcov-analysisUse for any question or task about LCOV .info or Cobertura XML coverage files, including reading one or finding which files fail a line gate. Parses per-file line, function and branch metrics from gcov, llvm-cov, coverage.py, JaCoCo, Jest, nyc or coverlet output, compares with a baseline and returns per-file pass or fail verdicts for a cross-language gate.npx claudepluginhub testland/qa --plugin qa-test-reporting2 plugins ship this exact skill · first indexed Nov 12, 2026
Other plugins' skills for the same job