diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2018-10-01 13:40:21 +0200 |
---|---|---|
committer | Rigel Kent <sendmemail@rigelk.eu> | 2018-10-01 13:40:28 +0200 |
commit | 9e3e248109ffe5fc208c23081cbcffdb9a682ff4 (patch) | |
tree | 951223299727201fc5bbddd6c595725c3919a372 /scripts | |
parent | 8c202ae8d4e0ee17f804b4977ea9ce37057cd023 (diff) | |
download | PeerTube-9e3e248109ffe5fc208c23081cbcffdb9a682ff4.tar.gz PeerTube-9e3e248109ffe5fc208c23081cbcffdb9a682ff4.tar.zst PeerTube-9e3e248109ffe5fc208c23081cbcffdb9a682ff4.zip |
add protractor profile for local tests
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/e2e/index.sh (renamed from scripts/e2e.sh) | 1 | ||||
-rwxr-xr-x | scripts/e2e/local.sh | 16 |
2 files changed, 16 insertions, 1 deletions
diff --git a/scripts/e2e.sh b/scripts/e2e/index.sh index 1e31cd57c..cf2e04356 100755 --- a/scripts/e2e.sh +++ b/scripts/e2e/index.sh | |||
@@ -13,4 +13,3 @@ npm run clean:server:test | |||
13 | npm run concurrently -- -k -s first \ | 13 | npm run concurrently -- -k -s first \ |
14 | "cd client && npm run ng -- e2e --port 3333" \ | 14 | "cd client && npm run ng -- e2e --port 3333" \ |
15 | "NODE_ENV=test NODE_APP_INSTANCE=1 NODE_CONFIG='{ \"log\": { \"level\": \"warning\" } }' npm start" | 15 | "NODE_ENV=test NODE_APP_INSTANCE=1 NODE_CONFIG='{ \"log\": { \"level\": \"warning\" } }' npm start" |
16 | |||
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 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | set -eu | ||
4 | |||
5 | npm run clean:server:test | ||
6 | |||
7 | ( | ||
8 | cd client | ||
9 | npm run webdriver-manager update | ||
10 | npm run webpack -- --config webpack/webpack.video-embed.js --mode development | ||
11 | ) | ||
12 | |||
13 | npm run concurrently -- -k -s first \ | ||
14 | "cd client && npm run webdriver-manager start" \ | ||
15 | "cd client && npm run ng -- e2e --port 3333 -c local" \ | ||
16 | "NODE_ENV=test NODE_APP_INSTANCE=1 NODE_CONFIG='{ \"log\": { \"level\": \"warning\" } }' npm start" | ||