From 94f28043229241f2632643997cd37483bf47cdfa Mon Sep 17 00:00:00 2001 From: Johannes Rieken Date: Mon, 10 Apr 2017 10:20:56 +0200 Subject: [PATCH] Revert "revert electron tests" This reverts commit 119d2d4ba87de267feef75b464b747e34f46b704. --- scripts/test.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/test.sh b/scripts/test.sh index 9aa16fa3241..c8318a434dd 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -28,15 +28,15 @@ test -d node_modules || ./scripts/npm.sh install # Build test -d out || ./node_modules/.bin/gulp compile - +echo "code $CODE" # Unit Tests export VSCODE_DEV=1 if [[ "$OSTYPE" == "darwin"* ]]; then - cd $ROOT ; ulimit -n 4096 ; ELECTRON_RUN_AS_NODE=1 \ + cd $ROOT ; ulimit -n 4096 ; \ "$CODE" \ - node_modules/mocha/bin/_mocha "$@" + test/electron/index.js "$@" else - cd $ROOT ; ELECTRON_RUN_AS_NODE=1 \ + cd $ROOT ; \ "$CODE" \ - node_modules/mocha/bin/_mocha "$@" + test/electron/index.js "$@" fi