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
Branches
No related tags found
1 merge request!66Testcafe testing base
Pipeline #101812 failed
default:
image: node:12
image: circleci/node:12-browsers
stages:
- fetch
......@@ -83,8 +83,7 @@ chrome_test:
dependencies:
- dev_node_install
script:
- apt-get update -qq && apt-get install -qq chromium
- npm run test-e2e:chromium
- npm run test-e2e
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 @@
"test": "jest --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-e2e": "cd __e2e_tests__ ; ./run",
"test-e2e:chromium": "cd __e2e_tests__ ; ./run chromium:headless",
"test-e2e:peer1": "testcafe chromium:headless __e2e_tests__/peer1.e2e.js",
"test-e2e:peer2": "testcafe chromium:headless __e2e_tests__/peer2.e2e.js",
"test-e2e": "run-p test-e2e:*",
"lint": "jshint .",
"validate": "npm ls"
},
......@@ -34,6 +35,7 @@
"eslint": "^6.5.1",
"eslint-plugin-testcafe": "^0.2.1",
"jest": "^24.9.0",
"npm-run-all": "^4.1.5",
"prettier": "^1.18.2",
"testcafe": "^1.5.0",
"webpack": "^4.41.0",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment