Skip to content
Snippets Groups Projects
Unverified Commit e128af46 authored by Alexander Harkness's avatar Alexander Harkness
Browse files

Use browser docker image and parallelise browser start properly

parent 305f5f7c
No related branches found
No related tags found
No related merge requests found
default: default:
image: node:12 image: circleci/node:12-browsers
stages: stages:
- fetch - fetch
...@@ -83,8 +83,7 @@ chrome_test: ...@@ -83,8 +83,7 @@ chrome_test:
dependencies: dependencies:
- dev_node_install - dev_node_install
script: script:
- apt-get update -qq && apt-get install -qq chromium - npm run test-e2e
- npm run test-e2e:chromium
deploy: deploy:
stage: deploy stage: deploy
......
#!/bin/bash
set -e
set -x
TEST1="peer1.e2e.js"
TEST2="peer2.e2e.js"
COMMAND="npx testcafe $1"
$COMMAND $TEST1 & $COMMAND $TEST2
\ No newline at end of file
This diff is collapsed.
...@@ -13,8 +13,9 @@ ...@@ -13,8 +13,9 @@
"test": "jest --testPathIgnorePatterns src/liowebrtc src/rtcpeerconnection src/signalbuddy", "test": "jest --testPathIgnorePatterns src/liowebrtc src/rtcpeerconnection src/signalbuddy",
"test-changed": "jest --only-changed --testPathIgnorePatterns src/liowebrtc src/rtcpeerconnection src/signalbuddy", "test-changed": "jest --only-changed --testPathIgnorePatterns src/liowebrtc src/rtcpeerconnection src/signalbuddy",
"test-coverage": "jest --coverage --testPathIgnorePatterns src/liowebrtc src/rtcpeerconnection src/signalbuddy", "test-coverage": "jest --coverage --testPathIgnorePatterns src/liowebrtc src/rtcpeerconnection src/signalbuddy",
"test-e2e": "cd __e2e_tests__ ; ./run", "test-e2e:peer1": "testcafe chromium:headless __e2e_tests__/peer1.e2e.js",
"test-e2e:chromium": "cd __e2e_tests__ ; ./run chromium:headless", "test-e2e:peer2": "testcafe chromium:headless __e2e_tests__/peer2.e2e.js",
"test-e2e": "run-p test-e2e:*",
"lint": "jshint .", "lint": "jshint .",
"validate": "npm ls" "validate": "npm ls"
}, },
...@@ -34,6 +35,7 @@ ...@@ -34,6 +35,7 @@
"eslint": "^6.5.1", "eslint": "^6.5.1",
"eslint-plugin-testcafe": "^0.2.1", "eslint-plugin-testcafe": "^0.2.1",
"jest": "^24.9.0", "jest": "^24.9.0",
"npm-run-all": "^4.1.5",
"prettier": "^1.18.2", "prettier": "^1.18.2",
"testcafe": "^1.5.0", "testcafe": "^1.5.0",
"webpack": "^4.41.0", "webpack": "^4.41.0",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment