mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 03:54:24 +01:00
* experiment with running macOS integration test against real build
* echo command
* more tests
* Revert "more tests"
This reverts commit b07bde89be.
* test
* fix script
* fix build
* fix tests
* fix build
* fix build
* conditionally enable test for remote
* adopt for linux and windows
* disable failing test
* fix build
* windows - echo off
* fix variable check
* fix path
* fix compile
* echo off
* mac polish
54 lines
2.9 KiB
Batchfile
54 lines
2.9 KiB
Batchfile
@echo off
|
|
setlocal
|
|
|
|
pushd %~dp0\..
|
|
|
|
set VSCODEUSERDATADIR=%TMP%\vscodeuserfolder-%RANDOM%-%TIME:~6,5%
|
|
|
|
if "%INTEGRATION_TEST_ELECTRON_PATH%"=="" (
|
|
:: code.bat makes sure Test Extensions are compiled
|
|
set INTEGRATION_TEST_ELECTRON_PATH=.\scripts\code.bat
|
|
) else (
|
|
:: Compile Test Extensions
|
|
call yarn gulp compile-extension:vscode-api-tests
|
|
call yarn gulp compile-extension:vscode-colorize-tests
|
|
call yarn gulp compile-extension:markdown-language-features
|
|
call yarn gulp compile-extension:emmet
|
|
call yarn gulp compile-extension:css-language-features-server
|
|
call yarn gulp compile-extension:html-language-features-server
|
|
call yarn gulp compile-extension:json-language-features-server
|
|
|
|
echo "Using %INTEGRATION_TEST_ELECTRON_PATH% as Electron path"
|
|
)
|
|
|
|
:: Integration & performance tests in AMD
|
|
call .\scripts\test.bat --runGlob **\*.integrationTest.js %*
|
|
if %errorlevel% neq 0 exit /b %errorlevel%
|
|
|
|
:: Tests in the extension host
|
|
call "%INTEGRATION_TEST_ELECTRON_PATH%" %~dp0\..\extensions\vscode-api-tests\testWorkspace --extensionDevelopmentPath=%~dp0\..\extensions\vscode-api-tests --extensionTestsPath=%~dp0\..\extensions\vscode-api-tests\out\singlefolder-tests --disable-telemetry --disable-crash-reporter --disable-updates --disable-extensions --disable-inspect --user-data-dir=%VSCODEUSERDATADIR%
|
|
if %errorlevel% neq 0 exit /b %errorlevel%
|
|
|
|
call "%INTEGRATION_TEST_ELECTRON_PATH%" %~dp0\..\extensions\vscode-api-tests\testworkspace.code-workspace --extensionDevelopmentPath=%~dp0\..\extensions\vscode-api-tests --extensionTestsPath=%~dp0\..\extensions\vscode-api-tests\out\workspace-tests --disable-telemetry --disable-crash-reporter --disable-updates --disable-extensions --disable-inspect --user-data-dir=%VSCODEUSERDATADIR%
|
|
if %errorlevel% neq 0 exit /b %errorlevel%
|
|
|
|
call "%INTEGRATION_TEST_ELECTRON_PATH%" %~dp0\..\extensions\vscode-colorize-tests\test --extensionDevelopmentPath=%~dp0\..\extensions\vscode-colorize-tests --extensionTestsPath=%~dp0\..\extensions\vscode-colorize-tests\out --disable-telemetry --disable-crash-reporter --disable-updates --disable-extensions --disable-inspect --user-data-dir=%VSCODEUSERDATADIR%
|
|
if %errorlevel% neq 0 exit /b %errorlevel%
|
|
|
|
call "%INTEGRATION_TEST_ELECTRON_PATH%" $%~dp0\..\extensions\emmet\test-fixtures --extensionDevelopmentPath=%~dp0\..\extensions\emmet --extensionTestsPath=%~dp0\..\extensions\emmet\out\test --disable-telemetry --disable-crash-reporter --disable-updates --disable-extensions --disable-inspect --user-data-dir=%VSCODEUSERDATADIR% .
|
|
if %errorlevel% neq 0 exit /b %errorlevel%
|
|
|
|
:: Tests in commonJS (HTML, CSS, JSON language server tests...)
|
|
call .\scripts\node-electron.bat .\node_modules\mocha\bin\_mocha .\extensions\*\server\out\test\**\*.test.js
|
|
if %errorlevel% neq 0 exit /b %errorlevel%
|
|
|
|
if exist ".\resources\server\test\test-remote-integration.bat" (
|
|
call .\resources\server\test\test-remote-integration.bat
|
|
)
|
|
|
|
rmdir /s /q %VSCODEUSERDATADIR%
|
|
|
|
popd
|
|
|
|
endlocal
|