提交 8a73c7d0 编写于 作者: J Johannes Rieken

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

上级 e2d30cc1
......@@ -44,8 +44,7 @@ script:
- gulp electron --silent
- gulp compile --silent --max_old_space_size=4096
- gulp optimize-vscode --silent --max_old_space_size=4096
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ./scripts/test.sh --reporter dot --coverage; else ./scripts/test.sh --reporter dot; fi
- ./scripts/test-electron.sh
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ./scripts/test.sh --coverage; else ./scripts/test.sh; fi
- ./scripts/test-integration.sh
after_success:
......
......@@ -16,5 +16,4 @@ test_script:
- node --version
- npm --version
- .\scripts\test.bat
- .\scripts\test-electron.bat
- .\scripts\test-integration.bat
@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%
\ No newline at end of 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 ; \
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
@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%
\ No newline at end of file
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 ; 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
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册