2016-04-28 22:15:19 +08:00
|
|
|
@echo off
|
|
|
|
setlocal
|
|
|
|
|
2017-04-26 16:17:59 +08:00
|
|
|
pushd %~dp0\..
|
|
|
|
|
2017-03-18 01:19:31 +08:00
|
|
|
set VSCODEUSERDATADIR=%TMP%\vscodeuserfolder-%RANDOM%-%TIME:~6,5%
|
2016-04-29 15:44:54 +08:00
|
|
|
|
2018-10-30 06:23:39 +08:00
|
|
|
:: Integration & performance tests in AMD
|
|
|
|
call .\scripts\test.bat --runGlob **\*.integrationTest.js %*
|
|
|
|
if %errorlevel% neq 0 exit /b %errorlevel%
|
|
|
|
|
2017-11-15 18:15:41 +08:00
|
|
|
:: Tests in the extension host
|
2018-10-23 22:13:27 +08:00
|
|
|
REM 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%
|
|
|
|
REM if %errorlevel% neq 0 exit /b %errorlevel%
|
2018-01-26 23:16:36 +08:00
|
|
|
|
2018-10-23 22:13:27 +08:00
|
|
|
REM 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%
|
|
|
|
REM if %errorlevel% neq 0 exit /b %errorlevel%
|
2017-12-13 08:58:43 +08:00
|
|
|
|
2017-11-15 18:25:09 +08: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 08:58:43 +08:00
|
|
|
if %errorlevel% neq 0 exit /b %errorlevel%
|
|
|
|
|
2018-03-07 09:08:54 +08: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 08:58:43 +08:00
|
|
|
if %errorlevel% neq 0 exit /b %errorlevel%
|
2016-04-28 22:15:19 +08:00
|
|
|
|
2018-03-20 20:02:42 +08:00
|
|
|
# Tests in commonJS (HTML, CSS, JSON language server tests...)
|
2018-03-22 00:20:53 +08:00
|
|
|
call .\scripts\node-electron.bat .\node_modules\mocha\bin\_mocha .\extensions\*\server\out\test\**\*.test.js
|
2017-12-13 08:58:43 +08:00
|
|
|
if %errorlevel% neq 0 exit /b %errorlevel%
|
2017-11-15 18:15:41 +08:00
|
|
|
|
2017-03-18 01:19:31 +08:00
|
|
|
rmdir /s /q %VSCODEUSERDATADIR%
|
2017-03-17 23:52:31 +08:00
|
|
|
|
2017-04-26 16:17:59 +08:00
|
|
|
popd
|
|
|
|
|
2017-03-08 00:28:16 +08:00
|
|
|
endlocal
|