diff --git a/README.md b/README.md index a38309f..1116cae 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 2adc03e..028b72b 100644 --- a/package.json +++ b/package.json @@ -56,6 +56,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"