diff --git a/scripts/run_cucumber_tests.sh b/scripts/run_cucumber_tests.sh index 4ac64e128..9514ba268 100755 --- a/scripts/run_cucumber_tests.sh +++ b/scripts/run_cucumber_tests.sh @@ -4,11 +4,16 @@ set -e # we do not run `osrm-routed-js` tests on v12 since fastify doesn't support it NODE_VERSION=$(node --version) NODE_MAJOR_VERSION=$(echo $NODE_VERSION | cut -d. -f1) -if [[ $NODE_MAJOR_VERSION != "v12" ]]; then +if [[ "$NODE_MAJOR_VERSION" != "v12" ]]; then + echo "Running osrm-routed-js tests" + export OSRM_USE_ROUTED_JS=1 node ./node_modules/cucumber/bin/cucumber.js features/ -p verify_routed_js node ./node_modules/cucumber/bin/cucumber.js features/ -p mld_routed_js unset OSRM_USE_ROUTED_JS +else + echo "Skipping osrm-routed-js tests on Node.js ${NODE_VERSION}" +fi fi node ./node_modules/cucumber/bin/cucumber.js features/ -p verify