Jest-Allure reporting plugin
Add more power to your test using Jest-Allure.
Easily generate nice reports at the end of the execution.
Allure Framework is a flexible lightweight multi-language test report tool that not only
shows a very concise representation of what have been tested in a neat web report form,
but allows everyone participating in the development process to extract maximum of useful
information from everyday execution of tests.
Installation
yarn add -D jest-allure
or
npm install --save-dev jest-allure
add reporter to jest.config.js
reporters: ["default", "jest-allure"],
Run your tests and enjoy 🥤🚀
How to get a report
To see a report in browser, run in console
allure serve
If you want to generate html version, run in console
allure generate
What's next
Warning
jest-allure
reporter dynamically configure "setupTestFrameworkScriptFile" option in Jest configuration.
If you have your own setupTestFrameworkScriptFile file, you need to manually register allure reporter.
import { registerAllureReporter } from "jest-allure/dist/setup";
...
registerAllureReporter();
Contributors