Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/microsoft/vscode.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Aeschlimann <martinae@microsoft.com>2022-01-24 13:24:27 +0300
committerMartin Aeschlimann <martinae@microsoft.com>2022-01-24 13:43:21 +0300
commit25cfbe3445502c58cdf667e7d4170aa10c48b485 (patch)
treed3db04ee813d1343a17fec13e2e3d2f9ebe6c08e /scripts
parenta81c3b045dde741a05c8f8365c47d4207a5fc1a6 (diff)
test-web-integration: install test/integration/browser & playwright
Diffstat (limited to 'scripts')
-rw-r--r--scripts/test-web-integration.bat4
-rwxr-xr-xscripts/test-web-integration.sh5
2 files changed, 9 insertions, 0 deletions
diff --git a/scripts/test-web-integration.bat b/scripts/test-web-integration.bat
index 68c6a84eba2..13570fbc05a 100644
--- a/scripts/test-web-integration.bat
+++ b/scripts/test-web-integration.bat
@@ -33,6 +33,10 @@ if "%VSCODE_REMOTE_SERVER_PATH%"=="" (
compile-extension-media
)
+if not exist ".\test\integration\browser\out\index.js" (
+ call yarn --cwd test/integration/browser compile
+ call yarn playwright-install
+)
call node .\test\integration\browser\out\index.js --workspacePath=.\extensions\vscode-api-tests\testWorkspace --enable-proposed-api=vscode.vscode-api-tests --extensionDevelopmentPath=.\extensions\vscode-api-tests --extensionTestsPath=.\extensions\vscode-api-tests\out\singlefolder-tests %*
if %errorlevel% neq 0 exit /b %errorlevel%
diff --git a/scripts/test-web-integration.sh b/scripts/test-web-integration.sh
index 3c96fafe751..2a692e2d518 100755
--- a/scripts/test-web-integration.sh
+++ b/scripts/test-web-integration.sh
@@ -27,6 +27,11 @@ else
compile-extension-media
fi
+if [ ! -e 'test/integration/browser/out/index.js' ];then
+ yarn --cwd test/integration/browser compile
+ yarn playwright-install
+fi
+
# Tests in the extension host
node test/integration/browser/out/index.js --workspacePath $ROOT/extensions/vscode-api-tests/testWorkspace --enable-proposed-api=vscode.vscode-api-tests --extensionDevelopmentPath=$ROOT/extensions/vscode-api-tests --extensionTestsPath=$ROOT/extensions/vscode-api-tests/out/singlefolder-tests "$@"
node test/integration/browser/out/index.js --workspacePath $ROOT/extensions/vscode-api-tests/testworkspace.code-workspace --enable-proposed-api=vscode.vscode-api-tests --extensionDevelopmentPath=$ROOT/extensions/vscode-api-tests --extensionTestsPath=$ROOT/extensions/vscode-api-tests/out/workspace-tests "$@"