From 9e3e248109ffe5fc208c23081cbcffdb9a682ff4 Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Mon, 1 Oct 2018 13:40:21 +0200 Subject: add protractor profile for local tests --- scripts/e2e.sh | 16 ---------------- scripts/e2e/index.sh | 15 +++++++++++++++ scripts/e2e/local.sh | 16 ++++++++++++++++ 3 files changed, 31 insertions(+), 16 deletions(-) delete mode 100755 scripts/e2e.sh create mode 100755 scripts/e2e/index.sh create mode 100755 scripts/e2e/local.sh (limited to 'scripts') diff --git a/scripts/e2e.sh b/scripts/e2e.sh deleted file mode 100755 index 1e31cd57c..000000000 --- a/scripts/e2e.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/bin/sh - -set -eu - -npm run clean:server:test - -( - cd client - npm run webdriver-manager update - 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\": \"warning\" } }' npm start" - diff --git a/scripts/e2e/index.sh b/scripts/e2e/index.sh new file mode 100755 index 000000000..cf2e04356 --- /dev/null +++ b/scripts/e2e/index.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +set -eu + +npm run clean:server:test + +( + cd client + npm run webdriver-manager update + 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\": \"warning\" } }' npm start" diff --git a/scripts/e2e/local.sh b/scripts/e2e/local.sh new file mode 100755 index 000000000..65ec653dc --- /dev/null +++ b/scripts/e2e/local.sh @@ -0,0 +1,16 @@ +#!/bin/sh + +set -eu + +npm run clean:server:test + +( + cd client + npm run webdriver-manager update + npm run webpack -- --config webpack/webpack.video-embed.js --mode development +) + +npm run concurrently -- -k -s first \ + "cd client && npm run webdriver-manager start" \ + "cd client && npm run ng -- e2e --port 3333 -c local" \ + "NODE_ENV=test NODE_APP_INSTANCE=1 NODE_CONFIG='{ \"log\": { \"level\": \"warning\" } }' npm start" -- cgit v1.2.3