1.2.1 • Published 2 months ago

jest-allure2-reporter v1.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

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',
  ],
};

Usage

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

npm test

and then view the results:

allure serve

Example screenshot

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

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.