From 5b1cf9898dc8caf35215a0438acbe78d2b445d99 Mon Sep 17 00:00:00 2001 From: Aneesh Devasthale Date: Mon, 7 Mar 2016 18:09:59 +0530 Subject: [PATCH] Added test command for Windows support Use `npm run test:win` to run tests on Windows. Fixes #323. Variables like `$COVERAGE_OPTION` are not supported in Windows. --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index ee0e0b4e5b..a645baaf9c 100644 --- a/package.json +++ b/package.json @@ -59,6 +59,7 @@ "build": "./node_modules/.bin/babel src/ -d lib/", "pretest": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=3.0.8} ./node_modules/.bin/mongodb-runner start", "test": "cross-env NODE_ENV=test TESTING=1 ./node_modules/.bin/babel-node $COVERAGE_OPTION ./node_modules/jasmine/bin/jasmine.js", + "test:win": "npm run pretest && cross-env NODE_ENV=test TESTING=1 ./node_modules/.bin/babel-node ./node_modules/babel-istanbul/lib/cli.js cover -x **/spec/** ./node_modules/jasmine/bin/jasmine.js && npm run posttest", "posttest": "./node_modules/.bin/mongodb-runner stop", "coverage": "cross-env COVERAGE_OPTION='./node_modules/babel-istanbul/lib/cli.js cover -x **/spec/**' npm test", "start": "node ./bin/parse-server",