Skip to content

wix-incubator/jest-allure2-reporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

f4b6098 Β· Nov 6, 2024

History

65 Commits
May 4, 2024
Dec 18, 2022
Dec 1, 2023
Nov 6, 2024
Nov 6, 2024
May 4, 2024
Nov 6, 2024
Nov 6, 2024
Oct 12, 2022
Oct 12, 2022
Oct 12, 2022
Dec 15, 2023
Dec 1, 2023
Dec 1, 2023
Oct 12, 2022
Nov 6, 2024
Dec 1, 2023
Nov 6, 2024
Dec 15, 2023
Feb 10, 2024
Dec 15, 2023
Dec 15, 2023
Dec 15, 2023
Dec 15, 2023
Dec 15, 2023
Dec 15, 2023
May 4, 2024
Dec 15, 2023
Dec 15, 2023
Nov 6, 2024
Dec 15, 2023
Dec 15, 2023
Dec 1, 2023
Nov 6, 2024
May 4, 2024
Nov 6, 2024

Repository files navigation

Stand With Ukraine

jest-allure2-reporter

Idiomatic Jest reporter for Allure Framework

npm version CI semantic-release: angular Commitizen friendly

Installation

This is an express guide to get you started quickly. Please visit our documentation website for more information.

Your project should have jest installed. The minimum supported version is 27.x.

Run in your project:

npm install --save-dev jest-allure2-reporter

Edit your Jest config, e.g. jest.config.js:

/** @type {import('@jest/types').Config.InitialOptions} */
module.exports = {
   // ...
   reporters: [
     'default',
+    'jest-allure2-reporter',
   ],
   // For the most of the features you'll need the custom environment:
+  testEnvironment: 'jest-allure2-reporter/environment-node',
};

Usage

Run your tests with jest as usual, e.g.:

npm test

and then view the results:

ALLURE_NO_ANALYTICS=1 allure serve

Example screenshot

If you need to generate a static report, e.g., on CI, run instead:

ALLURE_NO_ANALYTICS=1 allure generate

Make sure you have allure CLI installed beforehand. For more information about it, refer to the official Allure docs.

Contributing

See the Contributing guide on the website.

License

Licensed under MIT License.