mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-14 01:25:37 -05:00
@@ -1,3 +1,4 @@
|
||||
@echo OFF
|
||||
setlocal
|
||||
|
||||
pushd %~dp0\..
|
||||
@@ -7,6 +8,29 @@ set VSCODEEXTENSIONSDIR=%TMP%\adsext-%RANDOM%-%TIME:~6,5%
|
||||
echo VSCODEUSERDATADIR=%VSCODEUSERDATADIR%
|
||||
echo VSCODEEXTENSIONSDIR=%VSCODEEXTENSIONSDIR%
|
||||
|
||||
:: Figure out which Electron to use for running tests
|
||||
if "%INTEGRATION_TEST_ELECTRON_PATH%"=="" (
|
||||
:: Run out of sources: no need to compile as code.sh takes care of it
|
||||
set INTEGRATION_TEST_ELECTRON_PATH=.\scripts\code.bat
|
||||
|
||||
echo "Running integration tests out of sources."
|
||||
) else (
|
||||
:: Run from a built: need to compile all test extensions
|
||||
call yarn gulp compile-extension:integration-tests
|
||||
if NOT "%INTEGRATION_TEST_CLI_PATH%"=="" (
|
||||
echo "using vsix directory %AGENT_TEMPDIRECTORY%\vsix"
|
||||
for /f %%f IN ('dir /b /s "%AGENT_TEMPDIRECTORY%\vsix\*"') DO (
|
||||
echo "installing extension %%f"
|
||||
:: use the source cli, we could potentially change this if we ever care about testing this, but this is easier atm
|
||||
call %INTEGRATION_TEST_CLI_PATH% --install-extension "%%f" --force --user-data-dir=%VSCODEUSERDATADIR% --extensions-dir=%VSCODEEXTENSIONSDIR%
|
||||
)
|
||||
) else (
|
||||
echo "Not installing external extensions"
|
||||
)
|
||||
|
||||
echo "Running integration tests with '%INTEGRATION_TEST_ELECTRON_PATH%' as build."
|
||||
)
|
||||
|
||||
:: Default to only running stable tests if test grep isn't set
|
||||
if "%ADS_TEST_GREP%" == "" (
|
||||
echo Running stable tests only
|
||||
@@ -14,17 +38,16 @@ if "%ADS_TEST_GREP%" == "" (
|
||||
SET ADS_TEST_INVERT_GREP=1
|
||||
)
|
||||
|
||||
@echo OFF
|
||||
|
||||
if "%SKIP_PYTHON_INSTALL_TEST%" == "1" (
|
||||
echo Skipping Python installation tests.
|
||||
) else (
|
||||
set PYTHON_TEST_PATH=%VSCODEUSERDATADIR%\TestPythonInstallation
|
||||
echo %PYTHON_TEST_PATH%
|
||||
call .\scripts\code.bat --nogpu --extensionDevelopmentPath=%~dp0\..\extensions\notebook --extensionTestsPath=%~dp0\..\extensions\notebook\out\integrationTest --user-data-dir=%VSCODEUSERDATADIR% --extensions-dir=%VSCODEEXTENSIONSDIR% --remote-debugging-port=9222
|
||||
call %INTEGRATION_TEST_ELECTRON_PATH% --nogpu --extensionDevelopmentPath=%~dp0\..\extensions\notebook --extensionTestsPath=%~dp0\..\extensions\notebook\out\integrationTest --user-data-dir=%VSCODEUSERDATADIR% --extensions-dir=%VSCODEEXTENSIONSDIR% --remote-debugging-port=9222
|
||||
)
|
||||
|
||||
call .\scripts\code.bat -nogpu --extensionDevelopmentPath=%~dp0\..\extensions\integration-tests --extensionTestsPath=%~dp0\..\extensions\integration-tests\out --user-data-dir=%VSCODEUSERDATADIR% --extensions-dir=%VSCODEEXTENSIONSDIR% --remote-debugging-port=9222
|
||||
call %INTEGRATION_TEST_ELECTRON_PATH% -nogpu --user-data-dir=%VSCODEUSERDATADIR% --extensions-dir=%VSCODEEXTENSIONSDIR% --remote-debugging-port=9222 ^
|
||||
--extensionDevelopmentPath=%~dp0\..\extensions\integration-tests --extensionTestsPath=%~dp0\..\extensions\integration-tests\out
|
||||
|
||||
rmdir /s /q %VSCODEUSERDATADIR%
|
||||
rmdir /s /q %VSCODEEXTENSIONSDIR%
|
||||
|
||||
Reference in New Issue
Block a user