allure-reports
БесплатноБез исполняемых скриптовНе проверенUse when a team wants richer test reports than JUnit XML: steps, attachments, per-test history, retries and severity or feature labels. Sets up Allure Report…
от testland★ 18 звёзд на GitHubОб этом скилле
allure-reports
Overview
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:
- Tests run with an Allure adapter installed. The adapter
writes per-test JSON files into an
allure-results/directory. - Allure CLI generates the static HTML site from
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.
When to use
- The team needs richer reporting than JUnit XML - per-step attachments, screenshots on failure, history trends, severity / epic / feature labels, custom categorization of failures.
- A multi-framework project (pytest + Jest + JUnit) needs one unified report instead of three separate ones.
- An air-gapped or compliance-restricted environment needs static HTML output (vs SaaS test-management).
If the team only needs JUnit pass/fail and the CI already surfaces
that, see junit-xml-analysis -
that's a much lighter dependency.
Step 1 - Install the framework adapter
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).
Step 2 - Generate the static report
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.)
Step 3 - Configure failure categories
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.
Step 4 - Wire history retention
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), enabli
Установить allure-reports в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл allure-reports?
Use when a team wants richer test reports than JUnit XML: steps, attachments, per-test history, retries and severity or feature labels. Sets up Allure Report adapters for pytest, Jest, JUnit, TestNG, NUnit or Mocha, failure categories, history trends and the static HTML site as a CI artifact.
Как установить скилл allure-reports?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл allure-reports запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic