2016-04-28 14:15:19 +00:00
|
|
|
@echo off
|
|
|
|
setlocal
|
|
|
|
|
2017-04-26 08:17:59 +00:00
|
|
|
pushd %~dp0\..
|
|
|
|
|
2016-04-29 08:35:31 +00:00
|
|
|
if not "%APPVEYOR%" == "" (
|
2016-09-14 05:29:20 +00:00
|
|
|
set ELECTRON_RUN_AS_NODE=
|
2016-04-29 08:35:31 +00:00
|
|
|
)
|
2017-03-17 17:19:31 +00:00
|
|
|
set VSCODEUSERDATADIR=%TMP%\vscodeuserfolder-%RANDOM%-%TIME:~6,5%
|
2016-04-29 07:44:54 +00:00
|
|
|
|
2017-11-15 10:15:41 +00:00
|
|
|
:: Tests in the extension host
|
2018-01-26 15:16:36 +00:00
|
|
|
call .\scripts\code.bat %~dp0\..\extensions\vscode-api-tests\testWorkspace --extensionDevelopmentPath=%~dp0\..\extensions\vscode-api-tests --extensionTestsPath=%~dp0\..\extensions\vscode-api-tests\out\singlefolder-tests --disableExtensions --user-data-dir=%VSCODEUSERDATADIR%
|
|
|
|
if %errorlevel% neq 0 exit /b %errorlevel%
|
|
|
|
|
2018-01-27 10:49:18 +00:00
|
|
|
call .\scripts\code.bat %~dp0\..\extensions\vscode-api-tests\testworkspace.code-workspace --extensionDevelopmentPath=%~dp0\..\extensions\vscode-api-tests --extensionTestsPath=%~dp0\..\extensions\vscode-api-tests\out\workspace-tests --disableExtensions --user-data-dir=%VSCODEUSERDATADIR%
|
2017-12-13 00:58:43 +00:00
|
|
|
if %errorlevel% neq 0 exit /b %errorlevel%
|
|
|
|
|
2017-11-15 10:25:09 +00:00
|
|
|
call .\scripts\code.bat %~dp0\..\extensions\vscode-colorize-tests\test --extensionDevelopmentPath=%~dp0\..\extensions\vscode-colorize-tests --extensionTestsPath=%~dp0\..\extensions\vscode-colorize-tests\out --disableExtensions --user-data-dir=%VSCODEUSERDATADIR%
|
2017-12-13 00:58:43 +00:00
|
|
|
if %errorlevel% neq 0 exit /b %errorlevel%
|
|
|
|
|
2018-03-07 01:08:54 +00:00
|
|
|
call .\scripts\code.bat $%~dp0\..\extensions\emmet\test-fixtures --extensionDevelopmentPath=%~dp0\..\extensions\emmet --extensionTestsPath=%~dp0\..\extensions\emmet\out\test --disableExtensions --user-data-dir=%VSCODEUSERDATADIR% .
|
2017-12-13 00:58:43 +00:00
|
|
|
if %errorlevel% neq 0 exit /b %errorlevel%
|
2016-04-28 14:15:19 +00:00
|
|
|
|
2017-11-15 10:15:41 +00:00
|
|
|
:: Integration & performance tests in AMD
|
2017-11-15 10:25:09 +00:00
|
|
|
call .\scripts\test.bat --runGlob **\*.integrationTest.js %*
|
2017-12-13 00:58:43 +00:00
|
|
|
if %errorlevel% neq 0 exit /b %errorlevel%
|
2017-11-15 10:15:41 +00:00
|
|
|
|
|
|
|
:: Tests in commonJS (language servers tests...)
|
2017-11-15 10:25:09 +00:00
|
|
|
call .\scripts\node-electron.bat .\node_modules\mocha\bin\_mocha .\extensions\html\server\out\test\
|
2017-12-13 00:58:43 +00:00
|
|
|
if %errorlevel% neq 0 exit /b %errorlevel%
|
2017-11-15 10:15:41 +00:00
|
|
|
|
2017-03-17 17:19:31 +00:00
|
|
|
rmdir /s /q %VSCODEUSERDATADIR%
|
2017-03-17 15:52:31 +00:00
|
|
|
|
2017-04-26 08:17:59 +00:00
|
|
|
popd
|
|
|
|
|
2017-03-07 16:28:16 +00:00
|
|
|
endlocal
|