tests: Enable 'npm run selenium' on Windows
Run the script explictly via sh, the default is cmd.exe on Windows. Also ported from bash to sh per Jforrester's request. Change-Id: I96b66c6ae01a1761619955be2e8a3dbc64edff18
This commit is contained in:
parent
c036b6aa5b
commit
47cc31de95
2 changed files with 3 additions and 2 deletions
|
|
@ -8,7 +8,7 @@
|
|||
"qunit": "grunt qunit",
|
||||
"doc": "jsduck",
|
||||
"postdoc": "grunt copy:jsduck",
|
||||
"selenium": "./tests/selenium/selenium.sh",
|
||||
"selenium": "sh ./tests/selenium/selenium.sh",
|
||||
"selenium-daily": "npm run selenium-test -- --mochaOpts.grep @daily",
|
||||
"selenium-test": "wdio ./tests/selenium/wdio.conf.js"
|
||||
},
|
||||
|
|
|
|||
3
tests/selenium/selenium.sh
Executable file → Normal file
3
tests/selenium/selenium.sh
Executable file → Normal file
|
|
@ -1,4 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
# Called via "npm run selenium", see /package.json.
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
# Manually check if chromedriver is installed and let it fail early with a descriptive
|
||||
|
|
|
|||
Loading…
Reference in a new issue