Add TEST_DEBUG env var option for test.sh, to enable node 6 debugger (#4764)
This commit is contained in:
@@ -5,4 +5,10 @@ if [ -z "$TEST_GREP" ]; then
|
||||
TEST_GREP=""
|
||||
fi
|
||||
|
||||
node node_modules/mocha/bin/_mocha `scripts/_get-test-directories.sh` --opts test/mocha.opts --grep "$TEST_GREP"
|
||||
node="node"
|
||||
|
||||
if [ "$TEST_DEBUG" ]; then
|
||||
node="node --inspect --debug-brk"
|
||||
fi
|
||||
|
||||
$node node_modules/mocha/bin/_mocha `scripts/_get-test-directories.sh` --opts test/mocha.opts --grep "$TEST_GREP"
|
||||
|
||||
Reference in New Issue
Block a user