diff --git a/cucumber.sh b/cucumber.sh index 9f2df05..3807756 100644 --- a/cucumber.sh +++ b/cucumber.sh @@ -4,6 +4,11 @@ node_modules/http-server/bin/http-server ./test/demo-app -p 9000 > /dev/null & server=$! #Run tests -./node_modules/.bin/wdio test/wdio.conf.js +#Use SPEC="..." to set path to .feature file to run tests from +if [ "$SPEC" == "" ]; then + ./node_modules/.bin/wdio test/wdio.conf.js +else + ./node_modules/.bin/wdio test/wdio.conf.js --spec "$SPEC" +fi #Kill server after run kill -9 ${server}