mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 21:09:43 +00:00
37 lines
2.4 KiB
Bash
Executable file
37 lines
2.4 KiB
Bash
Executable file
#!/bin/bash
|
|
set -e
|
|
|
|
if [[ "$OSTYPE" == "darwin"* ]]; then
|
|
realpath() { [[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"; }
|
|
ROOT=$(dirname $(dirname $(realpath "$0")))
|
|
else
|
|
ROOT=$(dirname $(dirname $(readlink -f $0)))
|
|
fi
|
|
|
|
cd $ROOT
|
|
|
|
if [ -z "$VSCODE_REMOTE_SERVER_PATH" ]
|
|
then
|
|
echo "Using remote server out of sources for integration web tests"
|
|
else
|
|
echo "Using $VSCODE_REMOTE_SERVER_PATH as server path for web integration tests"
|
|
|
|
# Run from a built: need to compile all test extensions
|
|
# because we run extension tests from their source folders
|
|
# and the build bundles extensions into .build webpacked
|
|
yarn gulp compile-extension:vscode-api-tests \
|
|
compile-extension:markdown-language-features \
|
|
compile-extension:typescript-language-features \
|
|
compile-extension:emmet \
|
|
compile-extension:git \
|
|
compile-extension-media
|
|
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 "$@"
|
|
node test/integration/browser/out/index.js --workspacePath $ROOT/extensions/typescript-language-features/test-workspace --extensionDevelopmentPath=$ROOT/extensions/typescript-language-features --extensionTestsPath=$ROOT/extensions/typescript-language-features/out/test/unit "$@"
|
|
node test/integration/browser/out/index.js --workspacePath $ROOT/extensions/markdown-language-features/test-workspace --extensionDevelopmentPath=$ROOT/extensions/markdown-language-features --extensionTestsPath=$ROOT/extensions/markdown-language-features/out/test "$@"
|
|
node test/integration/browser/out/index.js --workspacePath $ROOT/extensions/emmet/test-workspace --extensionDevelopmentPath=$ROOT/extensions/emmet --extensionTestsPath=$ROOT/extensions/emmet/out/test "$@"
|
|
node test/integration/browser/out/index.js --workspacePath $(mktemp -d 2>/dev/null) --enable-proposed-api=vscode.git --extensionDevelopmentPath=$ROOT/extensions/git --extensionTestsPath=$ROOT/extensions/git/out/test "$@"
|