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