diff --git a/README.md b/README.md index 4f6a4431d..bb080b241 100644 --- a/README.md +++ b/README.md @@ -141,6 +141,20 @@ npm install npm test --disable-deprecated ``` +### **Debug** + +To run the **node-addon-api** tests with `--debug` option: + +``` +npm run-script dev +``` + +If you want faster build, you might use the following option: + +``` +npm run-script dev:incremental +``` + Take a look and get inspired by our **[test suite](https://github.com/nodejs/node-addon-api/tree/master/test)** diff --git a/package.json b/package.json index cd313a30c..7c1b44fe8 100644 --- a/package.json +++ b/package.json @@ -55,6 +55,10 @@ "scripts": { "pretest": "node-gyp rebuild -C test", "test": "node test", + "predev": "node-gyp rebuild -C test --debug", + "dev": "node test", + "predev:incremental": "node-gyp configure build -C test --debug", + "dev:incremental": "node test", "doc": "doxygen doc/Doxyfile" }, "version": "1.6.2"