|
1 | 1 | # Allure Javascript Integrations |
2 | 2 |
|
3 | | -> This project aggregates Allure Javascript commons and reporters. |
| 3 | +> Official Allure Framework integrations for JavaScript test runners and API tools. |
4 | 4 |
|
5 | 5 | [<img src="https://allurereport.org/public/img/allure-report.svg" height="85px" alt="Allure Report logo" align="right" />](https://allurereport.org "Allure Report") |
6 | 6 |
|
|
12 | 12 |
|
13 | 13 | --- |
14 | 14 |
|
| 15 | +## Overview |
| 16 | + |
| 17 | +This repository contains the shared `allure-js-commons` module together with ready-to-use integrations for the most popular JavaScript testing tools. Each package writes `allure-results` files that can be rendered by Allure Report. |
| 18 | + |
| 19 | +Allure adds a consistent reporting layer on top of your test runs: |
| 20 | + |
| 21 | +- rich steps with nested structure |
| 22 | +- attachments such as screenshots, logs, traces, and API payloads |
| 23 | +- metadata including owners, severity, tags, links, epics, stories, and test case IDs |
| 24 | +- history-aware results, retries, flaky analysis, categories, and environment details |
| 25 | +- a shared runtime API from `allure-js-commons` so teams can keep the same reporting model across frameworks |
| 26 | + |
| 27 | +## Basic installation |
| 28 | + |
| 29 | +Install the integration package for your test framework: |
| 30 | + |
| 31 | +```bash |
| 32 | +npm install -D allure-playwright |
| 33 | +``` |
| 34 | + |
| 35 | +Run your tests so the integration can produce `./allure-results`. |
| 36 | + |
| 37 | +To view the report, choose one of the supported report generators: |
| 38 | + |
| 39 | +- Allure Report 2 CLI: install it by following the [official installation guide](https://allurereport.org/docs/install/), then run `allure generate` and `allure open` |
| 40 | +- Allure Report 3: install the official npm package with `npm install -D allure`, then run `npx allure generate` and `npx allure open` |
| 41 | + |
| 42 | +## Supported versions and platforms |
| 43 | + |
| 44 | +The packages in this repository are Node.js integrations and are intended to run anywhere the underlying framework supports Node.js, including Linux, macOS, and Windows. |
| 45 | + |
| 46 | +This repository is currently validated in CI on: |
| 47 | + |
| 48 | +- Node.js 20 and 22 |
| 49 | +- Ubuntu and Windows runners |
| 50 | + |
| 51 | +Minimum supported framework versions by package: |
| 52 | + |
| 53 | +- `allure-codeceptjs`: `codeceptjs >= 2.3.6` |
| 54 | +- `allure-cucumberjs`: `@cucumber/cucumber >= 10.8.0` |
| 55 | +- `allure-cypress`: `cypress >= 12.17.4` |
| 56 | +- `allure-jasmine`: `jasmine >= 2.7.0` |
| 57 | +- `allure-jest`: `jest`, `jest-circus`, and matching Jest environments `>= 24.8.0` |
| 58 | +- `allure-mocha`: `mocha >= 6.2.0` |
| 59 | +- `allure-playwright`: `@playwright/test >= 1.53.0` |
| 60 | +- `allure-vitest`: `vitest >= 1.3.0` |
| 61 | +- `newman-reporter-allure`: `newman >= 3.5.0` |
| 62 | +- `allure-js-commons`: shared runtime and reporter SDK used to build integrations |
| 63 | + |
| 64 | +## Generate a report |
| 65 | + |
| 66 | +### Allure Report 2 |
| 67 | + |
| 68 | +After your tests generate `./allure-results`, create the HTML report with the classic CLI: |
| 69 | + |
| 70 | +```bash |
| 71 | +allure generate ./allure-results -o ./allure-report |
| 72 | +allure open ./allure-report |
| 73 | +``` |
| 74 | + |
| 75 | +### Allure Report 3 |
| 76 | + |
| 77 | +If you install the official `allure` npm package, you can generate and open the report with: |
| 78 | + |
| 79 | +```bash |
| 80 | +npx allure generate ./allure-results |
| 81 | +npx allure open ./allure-report |
| 82 | +``` |
| 83 | + |
15 | 84 | ## Supported frameworks |
16 | 85 |
|
17 | 86 | ### CucumberJS |
|
73 | 142 |
|
74 | 143 | ### allure-js-commons |
75 | 144 |
|
76 | | -Interface for Allure 2 to be used from Javascript and TypeScript. |
| 145 | +Runtime API and reporter SDK for JavaScript and TypeScript integrations. |
77 | 146 |
|
78 | 147 |   |
79 | 148 |
|
|
0 commit comments