Skip to content

Commit d70fe52

Browse files
authored
update readme (via #1427)
1 parent b3c9120 commit d70fe52

File tree

11 files changed

+463
-51
lines changed

11 files changed

+463
-51
lines changed

README.md

Lines changed: 71 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Allure Javascript Integrations
22

3-
> This project aggregates Allure Javascript commons and reporters.
3+
> Official Allure Framework integrations for JavaScript test runners and API tools.
44
55
[<img src="https://allurereport.org/public/img/allure-report.svg" height="85px" alt="Allure Report logo" align="right" />](https://allurereport.org "Allure Report")
66

@@ -12,6 +12,75 @@
1212

1313
---
1414

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+
1584
## Supported frameworks
1685

1786
### CucumberJS
@@ -73,7 +142,7 @@
73142

74143
### allure-js-commons
75144

76-
Interface for Allure 2 to be used from Javascript and TypeScript.
145+
Runtime API and reporter SDK for JavaScript and TypeScript integrations.
77146

78147
![npm](https://img.shields.io/npm/dm/allure-js-commons.svg) ![npm](https://img.shields.io/npm/v/allure-js-commons.svg)
79148

packages/allure-codeceptjs/README.md

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ The docs for Allure CodeceptJS are available at [https://allurereport.org/docs/c
1818

1919
Also, check out the examples at [github.com/allure-examples](https://github.com/orgs/allure-examples/repositories?q=visibility%3Apublic+archived%3Afalse+topic%3Aexample+topic%3Acodeceptjs).
2020

21+
## Features
22+
23+
- writes standard `allure-results` files directly from CodeceptJS runs
24+
- supports Allure labels, links, parameters, steps, and attachments through `allure-js-commons`
25+
- works with Allure Report 2 and Allure Report 3
26+
2127
## Installation
2228

2329
Install `allure-codeceptjs` using a package manager of your choice. For example:
@@ -26,6 +32,17 @@ Install `allure-codeceptjs` using a package manager of your choice. For example:
2632
npm install -D allure-codeceptjs
2733
```
2834

35+
Install Allure Report separately when you want to render the generated `allure-results`:
36+
37+
- follow the [Allure Report 2 installation guide](https://allurereport.org/docs/install/) to use the `allure` CLI
38+
- or install Allure Report 3 with `npm install -D allure` to use `npx allure`
39+
40+
## Supported versions and platforms
41+
42+
- `codeceptjs >= 2.3.6`
43+
- Linux, macOS, and Windows wherever CodeceptJS supports Node.js
44+
- this repository is validated in CI on Node.js 20 and 22
45+
2946
## Usage
3047

3148
Enable the `allure` plugin in [the CodeceptJS configuration file](https://codecept.io/configuration/):
@@ -51,18 +68,18 @@ You may select another location, or further customize the plugin's behavior with
5168

5269
### View the report
5370

54-
> You need Allure Report to be installed on your machine to generate and open the report from the result files. See the [installation instructions](https://allurereport.org/docs/install/) on how to get it.
55-
56-
Generate Allure Report after the tests are executed:
71+
Use Allure Report 2:
5772

5873
```bash
5974
allure generate ./allure-results -o ./allure-report
75+
allure open ./allure-report
6076
```
6177

62-
Open the generated report:
78+
Or use Allure Report 3:
6379

6480
```bash
65-
allure open ./allure-report
81+
npx allure generate ./allure-results
82+
npx allure open ./allure-report
6683
```
6784

6885
## Allure API

packages/allure-cucumberjs/README.md

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# allure-cucumberjs
22

3-
> Allure integration for `cucumber-js` compatible with `@cucumber/cucumber@^8.x.x` and Allure 2+.
3+
> Allure integration for `cucumber-js` with the shared Allure JavaScript runtime and reporter SDK.
44
55
[<img src="https://allurereport.org/public/img/allure-report.svg" height="85px" alt="Allure Report logo" align="right" />](https://allurereport.org "Allure Report")
66

@@ -19,6 +19,12 @@ The docs for Allure Cucumber.js are available at
1919

2020
Also, check out the examples at [github.com/allure-examples](https://github.com/orgs/allure-examples/repositories?q=visibility%3Apublic+archived%3Afalse+topic%3Aexample+topic%3Acucumberjs).
2121

22+
## Features
23+
24+
- writes Allure results from Cucumber.js formatter output
25+
- supports labels, links, parameters, steps, and attachments through `allure-js-commons`
26+
- works with Allure Report 2 and Allure Report 3
27+
2228
## Installation
2329

2430
Install `allure-cucumberjs` using a package manager of your choice. For example:
@@ -29,6 +35,18 @@ npm install -D allure-cucumberjs
2935

3036
> If you're a Yarn PnP user, please read [this](https://allurereport.org/docs/cucumberjs-configuration/#a-note-for-yarn-pnp-users).
3137
38+
Install Allure Report separately when you want to render the generated `allure-results`:
39+
40+
- follow the [Allure Report 2 installation guide](https://allurereport.org/docs/install/) to use the `allure` CLI
41+
- or install Allure Report 3 with `npm install -D allure` to use `npx allure`
42+
43+
## Supported versions and platforms
44+
45+
- `@cucumber/cucumber >= 10.8.0`
46+
- `@cucumber/messages >= 24.1.0`
47+
- Linux, macOS, and Windows wherever Cucumber.js supports Node.js
48+
- this repository is validated in CI on Node.js 20 and 22
49+
3250
## Usage
3351

3452
Enable the `allure-cucumberjs/reporter` formatter in [the Cucumber.js configuration file](https://github.com/cucumber/cucumber-js/blob/main/docs/configuration.md):
@@ -54,18 +72,18 @@ You may select another location, or further customize the formatter's behavior w
5472
5573
### View the report
5674
57-
> You need Allure Report to be installed on your machine to generate and open the report from the result files. See the [installation instructions](https://allurereport.org/docs/install/) on how to get it.
58-
59-
Generate Allure Report after the tests are executed:
75+
Use Allure Report 2:
6076
6177
```bash
6278
allure generate ./allure-results -o ./allure-report
79+
allure open ./allure-report
6380
```
6481
65-
Open the generated report:
82+
Or use Allure Report 3:
6683
6784
```bash
68-
allure open ./allure-report
85+
npx allure generate ./allure-results
86+
npx allure open ./allure-report
6987
```
7088
7189
## Allure API

packages/allure-cypress/README.md

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@
1616

1717
The docs for Allure Cypress are available at [https://allurereport.org/docs/cypress/](https://allurereport.org/docs/cypress/).
1818

19+
## Features
20+
21+
- writes Allure results from Cypress runs
22+
- supports steps, attachments, labels, links, parameters, and metadata through `allure-js-commons`
23+
- works with Allure Report 2 and Allure Report 3
24+
1925
## Installation
2026

2127
Install `allure-cypress` using a package manager of your choice. For example:
@@ -24,6 +30,17 @@ Install `allure-cypress` using a package manager of your choice. For example:
2430
npm install -D allure-cypress
2531
```
2632

33+
Install Allure Report separately when you want to render the generated `allure-results`:
34+
35+
- follow the [Allure Report 2 installation guide](https://allurereport.org/docs/install/) to use the `allure` CLI
36+
- or install Allure Report 3 with `npm install -D allure` to use `npx allure`
37+
38+
## Supported versions and platforms
39+
40+
- `cypress >= 12.17.4`
41+
- Linux, macOS, and Windows wherever Cypress supports Node.js
42+
- this repository is validated in CI on Node.js 20 and 22
43+
2744
## Usage
2845

2946
Call `allureCypress` to initialize the plugin from the `setupNodeEvents` function in `cypress.config.js`:
@@ -56,18 +73,18 @@ You may select another location, or further customize the plugin's behavior with
5673

5774
### View the report
5875

59-
> You need Allure Report to be installed on your machine to generate and open the report from the result files. See the [installation instructions](https://allurereport.org/docs/install/) on how to get it.
60-
61-
Generate Allure Report:
76+
Use Allure Report 2:
6277

6378
```bash
6479
allure generate ./allure-results -o ./allure-report
80+
allure open ./allure-report
6581
```
6682

67-
Open Allure Report:
83+
Or use Allure Report 3:
6884

6985
```bash
70-
allure open ./allure-report
86+
npx allure generate ./allure-results
87+
npx allure open ./allure-report
7188
```
7289

7390
## Allure API

packages/allure-jasmine/README.md

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@
1616

1717
The docs for Allure Jasmine are available at [https://allurereport.org/docs/jasmine/](https://allurereport.org/docs/jasmine/).
1818

19+
## Features
20+
21+
- writes Allure results from Jasmine reporter events
22+
- supports runtime metadata, nested steps, parameters, and attachments through `allure-js-commons`
23+
- works with Allure Report 2 and Allure Report 3
24+
1925
## Installation
2026

2127
Install `allure-jasmine` using a package manager of your choice. For example:
@@ -24,6 +30,17 @@ Install `allure-jasmine` using a package manager of your choice. For example:
2430
npm install -D allure-jasmine
2531
```
2632

33+
Install Allure Report separately when you want to render the generated `allure-results`:
34+
35+
- follow the [Allure Report 2 installation guide](https://allurereport.org/docs/install/) to use the `allure` CLI
36+
- or install Allure Report 3 with `npm install -D allure` to use `npx allure`
37+
38+
## Supported versions and platforms
39+
40+
- `jasmine >= 2.7.0`
41+
- Linux, macOS, and Windows wherever Jasmine supports Node.js
42+
- this repository is validated in CI on Node.js 20 and 22
43+
2744
## Usage
2845

2946
Create a helper file (e.g., `helpers/setup.js` or `helpers/setup.ts`) and set up the Allure reporter in it:
@@ -44,18 +61,18 @@ You may select another location, or further customize the reporter's behavior wi
4461

4562
### View the report
4663

47-
> You need Allure Report to be installed on your machine to generate and open the report from the result files. See the [installation instructions](https://allurereport.org/docs/install/) on how to get it.
48-
49-
Generate Allure Report after the tests are executed:
64+
Use Allure Report 2:
5065

5166
```bash
5267
allure generate ./allure-results -o ./allure-report
68+
allure open ./allure-report
5369
```
5470

55-
Open the generated report:
71+
Or use Allure Report 3:
5672

5773
```bash
58-
allure open ./allure-report
74+
npx allure generate ./allure-results
75+
npx allure open ./allure-report
5976
```
6077

6178
## Allure API

packages/allure-jest/README.md

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ The docs for Allure Jest are available at [https://allurereport.org/docs/jest/](
2222

2323
Also, check out the examples at [github.com/allure-examples](https://github.com/orgs/allure-examples/repositories?q=visibility%3Apublic+archived%3Afalse+topic%3Aexample+topic%3Ajest).
2424

25+
## Features
26+
27+
- writes Allure results from the Jest Circus runtime
28+
- supports labels, links, parameters, nested steps, and attachments through `allure-js-commons`
29+
- works with Allure Report 2 and Allure Report 3
30+
2531
## Installation
2632

2733
Install `allure-jest` using a package manager of your choice. For example:
@@ -36,6 +42,19 @@ npm install -D allure-jest
3642
> ```
3743
> Keep in mind, that `allure-js-commons` and `allure-jest` must have the same version. The same goes for all Jest packages (`jest`, `jest-circus`, `jest-environment-node`, etc). Use [`yarn info`](https://yarnpkg.com/cli/info) to check the versions.
3844
45+
Install Allure Report separately when you want to render the generated `allure-results`:
46+
47+
- follow the [Allure Report 2 installation guide](https://allurereport.org/docs/install/) to use the `allure` CLI
48+
- or install Allure Report 3 with `npm install -D allure` to use `npx allure`
49+
50+
## Supported versions and platforms
51+
52+
- `jest >= 24.8.0`
53+
- `jest-circus >= 24.8.0`
54+
- matching Jest CLI and environment packages `>= 24.8.0`
55+
- Linux, macOS, and Windows wherever Jest supports Node.js
56+
- this repository is validated in CI on Node.js 20 and 22
57+
3958
## Usage
4059
4160
Set the [`testEnvironment`](https://jestjs.io/docs/configuration#testenvironment-string) Jest option according to your needs:
@@ -59,18 +78,18 @@ You may select another location, or further customize the behavior of Allure Jes
5978
6079
### View the report
6180
62-
> You need Allure Report to be installed on your machine to generate and open the report from the result files. See the [installation instructions](https://allurereport.org/docs/install/) on how to get it.
63-
64-
Generate Allure Report after the tests are executed:
81+
Use Allure Report 2:
6582
6683
```bash
6784
allure generate ./allure-results -o ./allure-report
85+
allure open ./allure-report
6886
```
6987
70-
Open the generated report:
88+
Or use Allure Report 3:
7189
7290
```bash
73-
allure open ./allure-report
91+
npx allure generate ./allure-results
92+
npx allure open ./allure-report
7493
```
7594
7695
## Allure API

0 commit comments

Comments
 (0)