Skip to content
Snippets Groups Projects
Commit 460a7923 authored by OZGCloud's avatar OZGCloud
Browse files

workaround for e2e test report creation

parent 731a81e7
No related branches found
No related tags found
No related merge requests found
const fs = require("fs")
if (fs.existsSync("apps/goofy-e2e/reports/mochawesome-report/.jsons")) {
fs.rename("apps/goofy-e2e/reports/mochawesome-report/.jsons", "apps/goofy-e2e/reports/mochawesome-report/jsons", () =>{})
}
\ No newline at end of file
...@@ -36,11 +36,12 @@ ...@@ -36,11 +36,12 @@
"cypress:open": "npx cypress open --project apps/goofy-e2e", "cypress:open": "npx cypress open --project apps/goofy-e2e",
"cypress:run": "npx cypress run --project apps/goofy-e2e", "cypress:run": "npx cypress run --project apps/goofy-e2e",
"cypress:version": "npx cypress version", "cypress:version": "npx cypress version",
"cypress:merge-report": "mochawesome-merge apps/goofy-e2e/reports/mochawesome-report/*.json > apps/goofy-e2e/reports/report.json", "cypress:merge-report": "mochawesome-merge apps/goofy-e2e/reports/mochawesome-report/**/*.json > apps/goofy-e2e/reports/report.json",
"cypress:generate-html": "marge apps/goofy-e2e/reports/report.json -f report -o apps/goofy-e2e/reports/", "cypress:generate-html": "marge apps/goofy-e2e/reports/report.json -f report -o apps/goofy-e2e/reports/",
"cypress:delete-old-reports": "node apps/goofy-e2e/src/support/delete-old-reports.ts", "cypress:delete-old-reports": "node apps/goofy-e2e/src/support/delete-old-reports.ts",
"cypress:pre-merge": "node apps/goofy-e2e/src/support/pre-merge.ts",
"cypress:generate-report": "npm run cypress:merge-report ; npm run cypress:generate-html", "cypress:generate-report": "npm run cypress:merge-report ; npm run cypress:generate-html",
"cypress:ci-run": "npm run cypress:delete-old-reports ; npm run cypress:run -- --config-file ./cypress-ci.json ; test=$(echo \"$?\") ; npm run cypress:generate-report ; exit $test", "cypress:ci-run": "npm run cypress:delete-old-reports ; npm run cypress:run -- --config-file ./cypress-ci.json ; test=$(echo \"$?\") ; npm run cypress:pre-merge ; npm run cypress:generate-report ; exit $test",
"workspace-generator": "nx workspace-generator", "workspace-generator": "nx workspace-generator",
"sonar-scanner": "jest test a --coverage --testResultsProcessor='jest-sonar-reporter' && sonar-scanner -Dsonar.host.url=https://sonarqube.ozg-sh.de/ -Dsonar.login=25dfb9ee83a79b0f4af445c63405651fcf391ee8" "sonar-scanner": "jest test a --coverage --testResultsProcessor='jest-sonar-reporter' && sonar-scanner -Dsonar.host.url=https://sonarqube.ozg-sh.de/ -Dsonar.login=25dfb9ee83a79b0f4af445c63405651fcf391ee8"
}, },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment