build: update commands

This commit is contained in:
Johannes Millan 2025-07-31 14:03:28 +02:00
parent 9c92f581bd
commit 8230b966f7
3 changed files with 27 additions and 7 deletions

2
.gitignore vendored
View file

@ -108,5 +108,7 @@ src/assets/bundled-plugins/**/*.*
# testing webdav server
e2e-webdav-data
playwright-report/
electron-builder-appx.yaml

View file

@ -45,7 +45,23 @@ export default defineConfig({
},
],
]
: 'line',
: process.env.PLAYWRIGHT_HTML_REPORT
? [
[
'html',
{
outputFolder: path.join(
__dirname,
'..',
'.tmp',
'e2e-test-results',
'playwright-report',
),
open: 'always',
},
],
]
: 'line',
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
use: {
/* Base URL to use in actions like `await page.goto('/')`. */

View file

@ -56,12 +56,13 @@
"e2e": "cross-env WEBDAV_DATA_DIR=./e2e-webdav-data docker compose up -d webdav && TZ='Europe/Berlin' DETECT_CHROMEDRIVER_VERSION=true SKIP_POST_INSTALL=true npm i -D chromedriver --legacy-peer-deps && tsc --project e2e/tsconfig.e2e.json && start-server-and-test 'ng serve --no-live-reload' http://localhost:4200 'nightwatch -c ./e2e/nightwatch.conf.js --suiteRetries 1 --retries 1'",
"e2e:tag": "killall chromedriver; rm -R ./.tmp/out-tsc; tsc --project e2e/tsconfig.e2e.json && nightwatch -c ./e2e/nightwatch.conf.js --suiteRetries 0 --retries 0 --tag ",
"e2e:webdav": "WEBDAV_DATA_DIR=./e2e-webdav-data docker compose up -d webdav && sleep 5 && npm run e2e:tag webdav; docker compose down",
"e2e:playwright": "npx playwright test --config=e2e-playwright/playwright.config.ts --reporter=line",
"e2e:playwright:ui": "npx playwright test --config=e2e-playwright/playwright.config.ts --ui",
"e2e:playwright:file": "npx playwright test --config=e2e-playwright/playwright.config.ts --reporter=list",
"e2e:playwright:debug": "npx playwright test --config=e2e-playwright/playwright.config.ts --debug",
"e2e:playwright:headed": "npx playwright test --config=e2e-playwright/playwright.config.ts --headed",
"e2e:playwright:report": "npx playwright show-report --config=e2e-playwright/playwright.config.ts",
"e2e:playwright": "npx playwright test --config e2e-playwright/playwright.config.ts --reporter=line",
"e2e:playwright:ui": "npx playwright test --config e2e-playwright/playwright.config.ts --ui",
"e2e:playwright:file": "npx playwright test --config e2e-playwright/playwright.config.ts --reporter=list",
"e2e:playwright:debug": "npx playwright test --config e2e-playwright/playwright.config.ts --debug",
"e2e:playwright:headed": "npx playwright test --config e2e-playwright/playwright.config.ts --headed",
"e2e:playwright:show-report": "npx playwright show-report .tmp/e2e-test-results/playwright-report",
"e2e:playwright:report": "PLAYWRIGHT_HTML_REPORT=1 npx playwright test --config e2e-playwright/playwright.config.ts",
"electron": "NODE_ENV=PROD electron .",
"electron:build": "tsc -p electron/tsconfig.electron.json",
"electron:watch": "tsc -p electron/tsconfig.electron.json --watch",
@ -93,6 +94,7 @@
"serveProd": "ng serve --configuration production",
"start": "npm run electron:build && cross-env NODE_ENV=DEV electron .",
"startFrontend": "node tools/load-env.js ng serve",
"startFrontend:e2e": "node tools/load-env.js ng serve --port=4242",
"startFrontend:prod": "node tools/load-env.js ng serve --configuration production",
"startFrontend:stage": "node tools/load-env.js ng serve --configuration stage",
"sync:android": "npx cap sync android",