Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sskorol/mocha-allure2-example
Allure 2 Mocha examples
https://github.com/sskorol/mocha-allure2-example
allure allure-js decorators mocha mocha-allure2 testdeck typesctipt
Last synced: about 1 month ago
JSON representation
Allure 2 Mocha examples
- Host: GitHub
- URL: https://github.com/sskorol/mocha-allure2-example
- Owner: sskorol
- License: apache-2.0
- Created: 2018-10-29T23:27:11.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-10-02T19:47:56.000Z (about 1 year ago)
- Last Synced: 2023-10-03T03:09:34.571Z (about 1 year ago)
- Topics: allure, allure-js, decorators, mocha, mocha-allure2, testdeck, typesctipt
- Language: TypeScript
- Homepage:
- Size: 387 KB
- Stars: 18
- Watchers: 1
- Forks: 7
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Allure 2 Mocha Report Examples
This project demonstrates how to use [allure-js](https://github.com/allure-framework/allure-js) with the official allure-decorators module. Note that it's based on the previous [ts-test-decorators](https://github.com/sskorol/ts-test-decorators) implementation.
## Usage
Dependencies installation and tests execution:
```bash
npm install
npm test
```Test results report generation and opening:
```bash
npm run allure-report
```Note that **.env** was pushed to show how to deal with `TMS_URL` / `PMS_URL` environment variables required to be set
while working with `@issue` / `@testCaseId` decorators.![image](https://user-images.githubusercontent.com/6638780/47686511-3bf8fd00-dbe4-11e8-8732-02db6fd3a2d5.png)