From 33749b9cc5d287354147cc4ed41f23e78d742793 Mon Sep 17 00:00:00 2001 From: "adrian.stein" Date: Mon, 4 Jun 2018 17:47:47 +0200 Subject: [PATCH 1/2] add test-windows and test-windows-debug scripts to package.json --- package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 5805cb171..b56d139e2 100644 --- a/package.json +++ b/package.json @@ -56,7 +56,9 @@ "scripts": { "pretest": "./node_modules/.bin/jshint --config ./.jshintrc lib test", "test": "NODE_ENV=test ./node_modules/.bin/mocha 'test/**/*_test.js'", - "test-debug": "NODE_ENV=test ./node_modules/.bin/mocha --inspect --debug-brk 'test/**/*_test.js'" + "test-windows": "set NODE_ENV=test&& node node_modules/mocha/bin/_mocha \"test\\**\\*_test.js\"", + "test-debug": "NODE_ENV=test ./node_modules/.bin/mocha --inspect --debug-brk 'test/**/*_test.js'", + "test-windows-debug": "set NODE_ENV=test&& node node_modules/mocha/bin/_mocha --inspect --debug-brk \"test\\**\\*_test.js\"" }, "repository": { "type": "git", From 95d849163a753d42fccb8276c8fcf23c4d80d210 Mon Sep 17 00:00:00 2001 From: "adrian.stein" Date: Mon, 4 Jun 2018 17:51:48 +0200 Subject: [PATCH 2/2] add npm run test-windows command to readme.me in the Tests section --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 02af44434..cec6d61ed 100644 --- a/README.md +++ b/README.md @@ -54,6 +54,11 @@ npm install npm test ``` +To run the tests on any windows system you need to use: + +```bash +npm run test-windows +``` [npm-image]: https://img.shields.io/npm/v/oauth2-server.svg [npm-url]: https://npmjs.org/package/oauth2-server