Skip to content

Commit

Permalink
Improve interface with version runner
Browse files Browse the repository at this point in the history
  • Loading branch information
NatalieWolfe authored and Bryan Clement committed Mar 14, 2018
1 parent 3b6555a commit 1c1081d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
11 changes: 7 additions & 4 deletions bin/run-versioned-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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[@]}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 1c1081d

Please sign in to comment.