renames: test -> test-mocha and test-electron -> test

This commit is contained in:
Johannes Rieken committed 2017-04-04 17:03:39 +02:00
1 parent e2d30cc1f3
commit 8a73c7d0b4
6 files changed
+25 -27

No files matched your search

@@ -1,7 +1,7 @@
@echo off
setlocal
set ELECTRON_RUN_AS_NODE=
set ELECTRON_RUN_AS_NODE=1
pushd %~dp0\..
@@ -10,10 +10,16 @@ set NAMESHORT=%NAMESHORT: "=%
set NAMESHORT=%NAMESHORT:"=%.exe
set CODE=".build\electron\%NAMESHORT%"
rem Run tests in electron
%CODE% .\test\electron\index.js %*
rem TFS Builds
if not "%BUILD_BUILDID%" == "" (
%CODE% .\node_modules\mocha\bin\_mocha %*
)
rem Otherwise
if "%BUILD_BUILDID%" == "" (
%CODE% .\node_modules\mocha\bin\_mocha --reporter dot %*
)
popd
endlocal
exit /b %errorlevel%
exit /b %errorlevel%
@@ -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 ; \
cd $ROOT ; ulimit -n 4096 ; ELECTRON_RUN_AS_NODE=1 \
"$CODE" \
test/electron/index.js "$@"
node_modules/mocha/bin/_mocha "$@"
else
cd $ROOT ; \
cd $ROOT ; ELECTRON_RUN_AS_NODE=1 \
"$CODE" \
test/electron/index.js "$@"
node_modules/mocha/bin/_mocha "$@"
fi
+4 -10
View File
@@ -1,7 +1,7 @@
@echo off
setlocal
set ELECTRON_RUN_AS_NODE=1
set ELECTRON_RUN_AS_NODE=
pushd %~dp0\..
@@ -10,16 +10,10 @@ set NAMESHORT=%NAMESHORT: "=%
set NAMESHORT=%NAMESHORT:"=%.exe
set CODE=".build\electron\%NAMESHORT%"
rem TFS Builds
if not "%BUILD_BUILDID%" == "" (
%CODE% .\node_modules\mocha\bin\_mocha %*
)
rem Run tests in electron
%CODE% .\test\electron\index.js %*
rem Otherwise
if "%BUILD_BUILDID%" == "" (
%CODE% .\node_modules\mocha\bin\_mocha --reporter dot %*
)
popd
endlocal
exit /b %errorlevel%
exit /b %errorlevel%
+5 -5
View File
@@ -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