From 12d6b873cd4c5eb8c4fd298885e0c7fa6deb3756 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 2 Sep 2021 08:57:59 +0200 Subject: Improve e2e workflow and add doc --- scripts/e2e/browserstack.sh | 9 +++++++++ scripts/e2e/index.sh | 14 -------------- scripts/test.sh | 7 ++----- 3 files changed, 11 insertions(+), 19 deletions(-) create mode 100755 scripts/e2e/browserstack.sh delete mode 100755 scripts/e2e/index.sh (limited to 'scripts') diff --git a/scripts/e2e/browserstack.sh b/scripts/e2e/browserstack.sh new file mode 100755 index 000000000..69a12d14c --- /dev/null +++ b/scripts/e2e/browserstack.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +set -eu + +npm run clean:server:test + +npm run concurrently -- -k -s first \ + "cd client/e2e && ../node_modules/.bin/wdio run ./wdio.browserstack.conf.ts" \ + "NODE_ENV=test NODE_APP_INSTANCE=1 NODE_CONFIG='{ \"log\": { \"level\": \"warn\" }, \"signup\": { \"enabled\": false } }' node dist/server" diff --git a/scripts/e2e/index.sh b/scripts/e2e/index.sh deleted file mode 100755 index 49d57f1df..000000000 --- a/scripts/e2e/index.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/sh - -set -eu - -npm run clean:server:test - -( - cd client - npm run webpack -- --config webpack/webpack.video-embed.js --mode development -) - -npm run concurrently -- -k -s first \ - "cd client && npm run ng -- e2e --port 3333" \ - "NODE_ENV=test NODE_APP_INSTANCE=1 NODE_CONFIG='{ \"log\": { \"level\": \"warn\" }, \"signup\": { \"enabled\": false } }' node dist/server" diff --git a/scripts/test.sh b/scripts/test.sh index 01b259fe2..2dc79c6ce 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -2,11 +2,6 @@ set -eu -npm run build:server -npm run setup:cli - -npm run ci -- lint - npm run ci -- client npm run ci -- cli-plugin npm run ci -- api-1 @@ -14,3 +9,5 @@ npm run ci -- api-2 npm run ci -- api-3 npm run ci -- api-4 npm run ci -- external-plugins + +npm run ci -- lint -- cgit v1.2.3