-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
testcafe acceptance test: concurrency and browser update (#1481)
Update testcafe concurrency and browser type when running acceptance test - update testcafe command to use a config file, including `--app` or `appCommand` option to start server instead of starting/shutting down server per fixture - update run_browserstack_acceptance script to spin up 2 browserstack instances of ie11 only on dev branch. Will only test safari as well when run on master and release branches. Chrome and firefox is tested in headless acceptance test with concurrency of 3. - overall time is reduced by half (~4mins) with 2 instances of ie11. J=SLAP-1426 TEST=auto - ran acceptance tests from circleCI workflow multiple times. See that number of instance of the expected browser type is setup in browserStack. See that the time, for the most part, is reduced by ~4 mins. - tested script locally: change the CIRCLE_BRANCH var to different branch names and see what command line is called - tested script through circleCI from pr: made a push to pr with a hardcoded CIRCLE_BRANCH value (hotfix/test-something) and see that it spin up 2 ie11 instance in browserstack. made a push without hardcoded value (which will take this pr name dev/testcafe-browsers) and see that 1 instance of ie11 and safari is up in browserstack.
- Loading branch information
Showing
15 changed files
with
151 additions
and
234 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
|
||
if [[ $CIRCLE_BRANCH == release/* | ||
|| $CIRCLE_BRANCH == hotfix/* | ||
|| $CIRCLE_BRANCH == master | ||
|| $CIRCLE_BRANCH == support* ]] | ||
then | ||
npx testcafe -c 3 "chrome:headless,firefox:headless" --config-file ./.circleci/testcafe.json | ||
else | ||
npx testcafe -c 3 "chrome:headless" --config-file ./.circleci/testcafe.json | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"src": "tests/acceptance/acceptancesuites/*.js", | ||
"quarantineMode": true, | ||
"appCommand": "npx serve -l tcp://0.0.0.0:9999", | ||
"appInitDelay": 4000 | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.