Add TEST_DEBUG env var option for test.sh, to enable node 6 debugger (#4764)
This commit is contained in:
parent
905efd1f26
commit
7cfe5c13e3
@ -115,6 +115,12 @@ Use the `TEST_GREP` variable to run a subset of tests by name:
|
|||||||
$ TEST_GREP=transformation make test
|
$ TEST_GREP=transformation make test
|
||||||
```
|
```
|
||||||
|
|
||||||
|
To enable the node debugger added in v6.3.0, set the `TEST_DEBUG` environment variable:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
$ TEST_DEBUG=true make test
|
||||||
|
```
|
||||||
|
|
||||||
To test the code coverage, use:
|
To test the code coverage, use:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
|
|||||||
@ -5,4 +5,10 @@ if [ -z "$TEST_GREP" ]; then
|
|||||||
TEST_GREP=""
|
TEST_GREP=""
|
||||||
fi
|
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"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user