diff --git a/bin/run-versioned-tests.sh b/bin/run-versioned-tests.sh index bc5eb35883..b644e06360 100755 --- a/bin/run-versioned-tests.sh +++ b/bin/run-versioned-tests.sh @@ -9,10 +9,13 @@ fi # fi set -f -DIRECTORY="test/versioned/**/*.tap.js" +directories=() if [[ "$1" != '' ]]; then - DIRECTORY="test/versioned/${1}/*.tap.js" + directories=( + "test/versioned/${1}" + "node_modules/@newrelic/${1}/tests/versioned" + ) fi -export NEW_RELIC_HOME=`pwd`/test/versioned -time ./node_modules/.bin/versioned-tests $VERSIONED_MODE -i 2 $DIRECTORY +export AGENT_PATH=`pwd` +time ./node_modules/.bin/versioned-tests $VERSIONED_MODE -i 2 ${directories[@]} diff --git a/package.json b/package.json index 0b7d95be0d..f8137d50d8 100644 --- a/package.json +++ b/package.json @@ -122,7 +122,7 @@ "@newrelic/native-metrics": "^2.1.0" }, "devDependencies": { - "@newrelic/test-utilities": "git+https://github.com/newrelic/node-test-utilities.git", + "@newrelic/test-utilities": "^1.2.0", "JSV": "~4.0.2", "architect": "*", "benchmark": "^2.1.4",