Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add allure reporting #588

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -151,3 +151,5 @@ automation/playwright-report/
automation/blob-report/
automation/playwright/.cache/
automation/.env
automation/allure-results
automation/allure-report
17 changes: 16 additions & 1 deletion automation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ npx playwright test

This will launch Playwright and execute the test suites defined in the project, outputting the results to your terminal.

## Current Тest Suites
## Current Test Suites

### 1. Registration tests

Expand Down Expand Up @@ -94,3 +94,18 @@ npx playwright test tests/TransactionTests
```bash
npx playwright test tests/WorkflowTests
```

## Test Reports
After running the tests, you can generate and view Allure reports by executing the following commands:

### 1. Generate reports

```bash
npm run allure:generate
```

### 2. Open reports

```bash
npm run allure:open
```
108 changes: 107 additions & 1 deletion automation/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 7 additions & 2 deletions automation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,16 @@
"name": "hedera-transaction-tool-tests",
"version": "1.0.0",
"scripts": {
"test": "playwright test"
"test": "playwright test",
"allure:generate": "allure generate allure-results --clean --single-file -o allure-report",
"allure:open": "allure open allure-report"
},
"devDependencies": {
"playwright": "^1.41.2",
"prettier": "^3.2.5"
"prettier": "^3.2.5",
"allure-playwright": "^2.0.0",
"allure-commandline": "^2.29.0",
"allure-js-commons": "3.0.0-beta.3"
},
"main": "playwright.config.js",
"directories": {
Expand Down
Loading
Loading