mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 01:46:07 +00:00
fix report generation in e2e test flow
This commit is contained in:
parent
dbc401c855
commit
9a38a8dc43
8
.github/workflows/test_e2e.yml
vendored
8
.github/workflows/test_e2e.yml
vendored
@ -33,7 +33,6 @@ jobs:
|
||||
yarn && yarn dev_reset
|
||||
cd ../backend
|
||||
yarn && yarn seed
|
||||
cd ..
|
||||
|
||||
- name: Boot up test system | docker-compose frontends
|
||||
run: docker-compose -f docker-compose.yml -f docker-compose.test.yml up --detach --no-deps frontend admin nginx
|
||||
@ -54,11 +53,14 @@ jobs:
|
||||
|
||||
- name: End-to-end tests | run tests
|
||||
id: e2e-tests
|
||||
run: pwd && yarn run cypress run
|
||||
run: |
|
||||
cd e2e-tests/
|
||||
yarn run cypress run
|
||||
node create-cucumber-html-report.js
|
||||
|
||||
- name: End-to-end tests | if tests failed, upload report
|
||||
if: ${{ failure() && steps.e2e-tests.conclusion == 'failure' }}
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: cypress-report-PR-${{ github.event.number }}
|
||||
path: /home/runner/work/gradido/gradido/e2e-tests/cypress/reports/
|
||||
path: /home/runner/work/gradido/gradido/e2e-tests/cypress/reports/cucumber_html_report
|
||||
|
||||
@ -1,7 +1,9 @@
|
||||
const report = require("multiple-cucumber-html-reporter");
|
||||
report.generate({
|
||||
jsonDir: "cypress/json_logs",
|
||||
jsonDir: "cypress/reports/json_logs",
|
||||
reportPath: "./cypress/reports/cucumber_html_report",
|
||||
pageTitle: "Gradido webapp end-to-end test report",
|
||||
|
||||
metadata: {
|
||||
app: {
|
||||
name: "Gradido webapp"
|
||||
|
||||
@ -11,12 +11,12 @@
|
||||
"stepDefinitions": "cypress/support/step_definitions/*.ts",
|
||||
"json": {
|
||||
"enabled": true,
|
||||
"output": "cypress/json_logs/cucumber_log.json",
|
||||
"output": "cypress/reports/json_logs/cucumber_log.json",
|
||||
"formatter": "cucumber-json-formatter"
|
||||
},
|
||||
"messages": {
|
||||
"enabled": true,
|
||||
"output": "cypress/json_logs/messages.ndjson"
|
||||
"output": "cypress/reports/json_logs/messages.ndjson"
|
||||
},
|
||||
"html": {
|
||||
"enabled": false
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user