Skip to content

Commit

Permalink
test-web-integration: install test/integration/browser & playwright
Browse files Browse the repository at this point in the history
  • Loading branch information
aeschli committed Jan 24, 2022
1 parent a81c3b0 commit 25cfbe3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/test-web-integration.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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%

Expand Down
5 changes: 5 additions & 0 deletions scripts/test-web-integration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 "$@"
Expand Down

0 comments on commit 25cfbe3

Please sign in to comment.