selenium: Run wdio directly without grunt
authorTimo Tijhof <krinklemail@gmail.com>
Sat, 21 Apr 2018 01:10:56 +0000 (02:10 +0100)
committerKrinkle <krinklemail@gmail.com>
Mon, 30 Apr 2018 21:54:15 +0000 (21:54 +0000)
commit810afd33e003f7bdfd8a7802cfb72cc6797f49e2
tree0ccc9f8841a9ebbc48e02d3239967e591a93d4fa
parent1c52863fc0c697a7a6216dfe44ca0dd83b6a3408
selenium: Run wdio directly without grunt

Doesn't seem to add anything, except complexity.

This has the benefit of matching more closely the way the README
recommends running individual tests.

Also add a check for 'chromedriver' before running it.
Normally the -e and pipefail would suffice, but because
it runs in the background, the error can be buried,
hard to find, or even not cause exit code to be set
properly. Thus, do a simple 'hash' check that will
print a useful command and exit cleanly.

Before:
> $ something &
> [1] 57922
> -bash: something: command not found
> [1]+  Exit 127                something
> $ echo $?
> 0

After:
> $ hash something
> -bash: hash: something: not found
> (exit: 1) $ echo $?
> 1

Change-Id: Id95f18927b5443defe679a77a82c5cbdd127c716
Gruntfile.js
package.json
tests/selenium/.eslintrc.json
tests/selenium/README.md
tests/selenium/selenium.sh