mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-22 11:01:54 +03:00
feat(tests): added allure report for tests (#3944)
Signed-off-by: Alex Velichko <nestor_007@mail.ru>
This commit is contained in:
parent
cb421f0218
commit
d5a7280f15
26
.github/workflows/main.yml
vendored
26
.github/workflows/main.yml
vendored
@ -184,10 +184,6 @@ jobs:
|
||||
run: |
|
||||
cd ./tests/sanity
|
||||
node ../../common/scripts/install-run-rushx.js uitest
|
||||
# - name: Archive DB
|
||||
# run: |
|
||||
# cd ./tests
|
||||
# ./update-snapshot-ci.sh ./tests/db_dump
|
||||
- name: "Store docker logs"
|
||||
if: always()
|
||||
run: |
|
||||
@ -202,6 +198,28 @@ jobs:
|
||||
with:
|
||||
name: playwright-results
|
||||
path: ./tests/sanity/playwright-report/
|
||||
- name: Generates Allure Report
|
||||
uses: simple-elf/allure-report-action@master
|
||||
if: always()
|
||||
id: allure-report
|
||||
with:
|
||||
allure_results: ./tests/sanity/allure-results/
|
||||
gh_pages: gh-pages
|
||||
allure_report: allure-report
|
||||
allure_history: allure-history
|
||||
- name: Upload allure test results
|
||||
if: always()
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: allure-report
|
||||
path: ./allure-report/
|
||||
- name: Deploy report to Github Pages
|
||||
if: ${{ github.ref == 'refs/heads/main' }}
|
||||
uses: peaceiris/actions-gh-pages@v2
|
||||
env:
|
||||
PERSONAL_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
PUBLISH_BRANCH: gh-pages
|
||||
PUBLISH_DIR: allure-history
|
||||
- name: Upload Logs
|
||||
if: always()
|
||||
uses: actions/upload-artifact@v3
|
||||
|
@ -824,6 +824,12 @@ dependencies:
|
||||
'@typescript-eslint/parser':
|
||||
specifier: ^5.41.0
|
||||
version: 5.62.0(eslint@8.51.0)(typescript@5.2.2)
|
||||
allure-commandline:
|
||||
specifier: 2.24.1
|
||||
version: 2.24.1
|
||||
allure-playwright:
|
||||
specifier: 2.9.2
|
||||
version: 2.9.2
|
||||
autolinker:
|
||||
specifier: 4.0.0
|
||||
version: 4.0.0
|
||||
@ -7822,6 +7828,23 @@ packages:
|
||||
uri-js: 4.4.1
|
||||
dev: false
|
||||
|
||||
/allure-commandline@2.24.1:
|
||||
resolution: {integrity: sha512-eNto3ipBq+O2B/f8/OwiS3E8R7jYENs3qv8jT7wMZmziYLANsISC9tX/FfEqR3FDiQlEOjkP7iyTEZ3ph53FPg==}
|
||||
hasBin: true
|
||||
dev: false
|
||||
|
||||
/allure-js-commons@2.9.2:
|
||||
resolution: {integrity: sha512-Qvi+zMZQruklqcnqG/zHCnE209v1YiWGhO3H2aPW2aXC8Ockqd01a+w2lP4Qqp3SfC+WQDeAK2+pp+v+eNl8xQ==}
|
||||
dependencies:
|
||||
properties: 1.2.1
|
||||
dev: false
|
||||
|
||||
/allure-playwright@2.9.2:
|
||||
resolution: {integrity: sha512-N0X1c1GGLg74vdDAuq86KCekuvQ5BaqqpgcBpJj5x3y/RlQPBn84wlg8PT/ViKQM4EdbNFMXOXpa5Opufv6qCg==}
|
||||
dependencies:
|
||||
allure-js-commons: 2.9.2
|
||||
dev: false
|
||||
|
||||
/ansi-colors@4.1.3:
|
||||
resolution: {integrity: sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==}
|
||||
engines: {node: '>=6'}
|
||||
@ -13947,6 +13970,11 @@ packages:
|
||||
react-is: 16.13.1
|
||||
dev: false
|
||||
|
||||
/properties@1.2.1:
|
||||
resolution: {integrity: sha512-qYNxyMj1JeW54i/EWEFsM1cVwxJbtgPp8+0Wg9XjNaK6VE/c4oRi6PNu5p7w1mNXEIQIjV5Wwn8v8Gz82/QzdQ==}
|
||||
engines: {node: '>=0.10'}
|
||||
dev: false
|
||||
|
||||
/prosemirror-changeset@2.2.1:
|
||||
resolution: {integrity: sha512-J7msc6wbxB4ekDFj+n9gTW/jav/p53kdlivvuppHsrZXCaQdVgRghoZbSS3kwrRyAstRVQ4/+u5k7YfLgkkQvQ==}
|
||||
dependencies:
|
||||
@ -17040,7 +17068,7 @@ packages:
|
||||
dev: false
|
||||
|
||||
file:projects/activity-resources.tgz(@types/node@16.11.68)(esbuild@0.16.17)(postcss-load-config@4.0.1)(postcss@8.4.31)(ts-node@10.9.1):
|
||||
resolution: {integrity: sha512-Ta3AhnWDUEsMsVwecL5q4+9P99UCeALuP96nVAGNi1h4y1iDOLq1ZFOtSm3xLMLXks20yXAoDjaaXpN5AkE4GQ==, tarball: file:projects/activity-resources.tgz}
|
||||
resolution: {integrity: sha512-9GzcUA5Q3zZL6TwGd0XkESkRYeWwFJ4CmUmHD8+jwEdGYmas7WaYoRKSbkplG5ckymwaEvyptyY+zRrHe80ckA==, tarball: file:projects/activity-resources.tgz}
|
||||
id: file:projects/activity-resources.tgz
|
||||
name: '@rush-temp/activity-resources'
|
||||
version: 0.0.0
|
||||
@ -19118,7 +19146,7 @@ packages:
|
||||
dev: false
|
||||
|
||||
file:projects/model-inventory.tgz(typescript@5.2.2):
|
||||
resolution: {integrity: sha512-SCKkh3KiOcLgrCz3z5MiPGD/loJ+bXNCLZEymK0SjK40RhZ/R+G1Vo6grvx2Wbkz2xzfTNGQ8UwppDWswH7r3Q==, tarball: file:projects/model-inventory.tgz}
|
||||
resolution: {integrity: sha512-wrbvP46RYBDK9YKuUkd6LlbsjizkbjB6G7WjgqNbxlG1A5XyHP93+9/75NQcQTercDk7UzsAEwDmLaoHue0sLw==, tarball: file:projects/model-inventory.tgz}
|
||||
id: file:projects/model-inventory.tgz
|
||||
name: '@rush-temp/model-inventory'
|
||||
version: 0.0.0
|
||||
@ -19137,7 +19165,7 @@ packages:
|
||||
dev: false
|
||||
|
||||
file:projects/model-lead.tgz(typescript@5.2.2):
|
||||
resolution: {integrity: sha512-R2wTUWC65rH1nbNyXSuVgiUGktemJ6yIdcErdlGMbK6uxqik7z4EE2JvoHDSWheQq+3WAKIwyCGCle/l1fFxGQ==, tarball: file:projects/model-lead.tgz}
|
||||
resolution: {integrity: sha512-VscZSxaIbMvb27fJNRBtfuvqYRFbyUG19kWTfQzBQzDqHiovm/jZPE9j8FlBAbh+BCdIgW6qM5uB2tEC53N2mA==, tarball: file:projects/model-lead.tgz}
|
||||
id: file:projects/model-lead.tgz
|
||||
name: '@rush-temp/model-lead'
|
||||
version: 0.0.0
|
||||
@ -19213,7 +19241,7 @@ packages:
|
||||
dev: false
|
||||
|
||||
file:projects/model-recruit.tgz(typescript@5.2.2):
|
||||
resolution: {integrity: sha512-AyYlOwgRIlVLti8RmL+Z2X0P3dV4oNLXHjh7SQO5T2ORQiv8YQ6kKs3If56XYw11LZL8YLjviRxL/0yLE7ZcOQ==, tarball: file:projects/model-recruit.tgz}
|
||||
resolution: {integrity: sha512-cgEU2xIyM5U16o7J2feYPTdDd1WCXCTCqVbIHFQRpHKsdt7EHdi/55i6MBwnFdnz0xIzklkT/KPBrh9IK96knw==, tarball: file:projects/model-recruit.tgz}
|
||||
id: file:projects/model-recruit.tgz
|
||||
name: '@rush-temp/model-recruit'
|
||||
version: 0.0.0
|
||||
@ -22683,7 +22711,7 @@ packages:
|
||||
dev: false
|
||||
|
||||
file:projects/tests-sanity.tgz:
|
||||
resolution: {integrity: sha512-9SbIfI88iqlwAyT1o2l31Wd+sReDJ5wIX9hOwqeBHScRmcpFanU2eVbffCiqKNtVZeiiyy1pmXGZm3thj3Nebg==, tarball: file:projects/tests-sanity.tgz}
|
||||
resolution: {integrity: sha512-Mpuuf0/aFi8XMdgJ8YKvLWE6xJ+gThtS0hZA9bjLdBV1sKUT8jMdHDfxaAcdtrSkWXymVggP+Qs8AAqpwIA8ug==, tarball: file:projects/tests-sanity.tgz}
|
||||
name: '@rush-temp/tests-sanity'
|
||||
version: 0.0.0
|
||||
dependencies:
|
||||
@ -22692,6 +22720,8 @@ packages:
|
||||
'@types/node': 16.11.68
|
||||
'@typescript-eslint/eslint-plugin': 5.62.0(@typescript-eslint/parser@5.62.0)(eslint@8.51.0)(typescript@5.2.2)
|
||||
'@typescript-eslint/parser': 5.62.0(eslint@8.51.0)(typescript@5.2.2)
|
||||
allure-commandline: 2.24.1
|
||||
allure-playwright: 2.9.2
|
||||
cross-env: 7.0.3
|
||||
dotenv: 16.0.3
|
||||
eslint: 8.51.0
|
||||
@ -22980,7 +23010,7 @@ packages:
|
||||
dev: false
|
||||
|
||||
file:projects/tracker-resources.tgz(@types/node@16.11.68)(esbuild@0.16.17)(postcss-load-config@4.0.1)(postcss@8.4.31)(ts-node@10.9.1):
|
||||
resolution: {integrity: sha512-Ikg4KXyZO5fRqMu1KSfX76R2HmkLbG2wC0JQUTkmIOgy7K/1/mzp8kQ33se2ljNYybz6Qj2csqZhD4Ptya4DUQ==, tarball: file:projects/tracker-resources.tgz}
|
||||
resolution: {integrity: sha512-fnONbbaUZPZYqnfrYl+MhWHrnxbedcy5Xa+dkh/HZeawN+PEETjL9OIF0H5y3zbBTqbOkYcB79l6CUZ56/tSdw==, tarball: file:projects/tracker-resources.tgz}
|
||||
id: file:projects/tracker-resources.tgz
|
||||
name: '@rush-temp/tracker-resources'
|
||||
version: 0.0.0
|
||||
|
4
tests/sanity/.gitignore
vendored
4
tests/sanity/.gitignore
vendored
@ -1,2 +1,4 @@
|
||||
playwright-report
|
||||
test-results/*
|
||||
test-results/*
|
||||
allure-report
|
||||
allure-results
|
@ -12,12 +12,13 @@
|
||||
"format": "format tests",
|
||||
"ci": "playwright install --with-deps chromium",
|
||||
"test": "",
|
||||
"uitest": "playwright test --browser chromium --reporter list,html -c ./tests/playwright.config.ts",
|
||||
"dev-uitest": "cross-env PLATFORM_URI=http://localhost:8080 PLATFORM_TRANSACTOR=ws://localhost:3333 SETTING=storage-dev.json playwright test --browser chromium --reporter list,html -c ./tests/playwright.config.ts",
|
||||
"uitest": "playwright test --browser chromium --reporter list,html,allure-playwright -c ./tests/playwright.config.ts",
|
||||
"dev-uitest": "cross-env PLATFORM_URI=http://localhost:8080 PLATFORM_TRANSACTOR=ws://localhost:3333 SETTING=storage-dev.json playwright test --browser chromium --reporter list,html,allure-playwright -c ./tests/playwright.config.ts",
|
||||
"debug": "playwright test --browser chromium -c ./tests/playwright.config.ts --debug --headed",
|
||||
"dev-debug": "cross-env PLATFORM_URI=http://localhost:8080 PLATFORM_TRANSACTOR=ws://localhost:3333 SETTING=storage-dev.json playwright test --browser chromium -c ./tests/playwright.config.ts --debug --headed",
|
||||
"codegen": "playwright codegen --load-storage storage.json http://localhost:8083/workbench/sanity-ws/",
|
||||
"dev-codegen": "cross-env playwright codegen --load-storage storage-dev.json http://localhost:8080/workbench/sanity-ws/"
|
||||
"dev-codegen": "cross-env playwright codegen --load-storage storage-dev.json http://localhost:8080/workbench/sanity-ws/",
|
||||
"allure:generate": "allure generate allure-results -o allure-report --clean"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@hcengineering/platform-rig": "^0.6.0",
|
||||
@ -32,7 +33,8 @@
|
||||
"eslint-config-standard-with-typescript": "^23.0.0",
|
||||
"prettier": "^2.7.1",
|
||||
"typescript": "^5.2.2",
|
||||
"@playwright/test": "~1.23.0"
|
||||
"@playwright/test": "~1.23.0",
|
||||
"allure-playwright": "2.9.2"
|
||||
},
|
||||
"dependencies": {
|
||||
"dotenv": "~16.0.0",
|
||||
|
@ -17,6 +17,7 @@ const config: PlaywrightTestConfig = {
|
||||
maxFailures: 5,
|
||||
expect: {
|
||||
timeout: 15000
|
||||
}
|
||||
},
|
||||
reporter: 'allure-playwright'
|
||||
}
|
||||
export default config
|
||||
|
Loading…
Reference in New Issue
Block a user