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/local.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 scripts/e2e/local.sh (limited to 'scripts/e2e/local.sh') 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