jest-circus-allure-reporter
v0.2.0
Published
![Lint-Build-Test-Publish](https://github.com/ryparker/jest-circus-allure-reporter/workflows/Lint-Build-Test-Publish/badge.svg) [![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/xojs/xo) [![semantic-release](http
Downloads
158
Readme
jest-circus-allure-reporter
A Jest Circus environment for Allure reporting.
Requirements
| Resource | Description | | -------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | | Jest | A delightful JavaScript testing framework. | | Allure 2 CLI | "A Java jar command line tool that turns Allure result files into beautiful Allure reports." |
:rocket: Quick start
- Add this package
yarn add --dev jest-circus-allure-environment
- Update
jest.config.js
See the official Jest docs for more details.
{
"testEnvironment": ["jest-circus-allure-environment"],
"testRunner": "jest-circus/runner"
}
- Run tests
yarn test
- Open the Allure report
allure serve ./allure-results
:recycle: Lifecycle events
Updated list available here
Bold items are async test events
Italic items are synchronous test events
- error
- constructor
- setup Fn
- setup
- add_hook
- start_describe_definition
- add_test
- finish_describe_definition
- run_start / test_skip / test_todo
- run_describe_start
- test_start
- hook_start
- hook_success / hook_failure
- test_fn_start
- test_fn_success / test_fn_failure / error
- test_done
- run_describe_finish
- run_finish
- teardown
- teardown Fn