2022-01-31 06:28:38 +00:00
|
|
|
#!/usr/bin/env bash
|
2021-10-20 16:42:13 +00:00
|
|
|
set -e
|
|
|
|
|
|
|
|
if [[ "$OSTYPE" == "darwin"* ]]; then
|
|
|
|
realpath() { [[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"; }
|
2022-01-21 13:33:34 +00:00
|
|
|
ROOT=$(dirname $(dirname $(realpath "$0")))
|
2021-10-20 16:42:13 +00:00
|
|
|
else
|
2022-01-21 13:33:34 +00:00
|
|
|
ROOT=$(dirname $(dirname $(readlink -f $0)))
|
2021-10-20 16:42:13 +00:00
|
|
|
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"
|
|
|
|
fi
|
|
|
|
|
2022-01-24 10:24:27 +00:00
|
|
|
if [ ! -e 'test/integration/browser/out/index.js' ];then
|
|
|
|
yarn --cwd test/integration/browser compile
|
|
|
|
yarn playwright-install
|
|
|
|
fi
|
|
|
|
|
2022-09-26 07:16:42 +00:00
|
|
|
|
2021-10-20 16:42:13 +00:00
|
|
|
# Tests in the extension host
|
2022-01-31 06:28:38 +00:00
|
|
|
|
|
|
|
echo
|
|
|
|
echo "### API tests (folder)"
|
|
|
|
echo
|
2021-10-20 16:42:13 +00:00
|
|
|
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 "$@"
|
2022-01-31 06:28:38 +00:00
|
|
|
|
|
|
|
echo
|
|
|
|
echo "### API tests (workspace)"
|
|
|
|
echo
|
2021-10-20 16:42:13 +00:00
|
|
|
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 "$@"
|
2022-01-31 06:28:38 +00:00
|
|
|
|
|
|
|
echo
|
|
|
|
echo "### TypeScript tests"
|
|
|
|
echo
|
2021-10-20 16:42:13 +00:00
|
|
|
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 "$@"
|
2022-01-31 06:28:38 +00:00
|
|
|
|
|
|
|
echo
|
|
|
|
echo "### Markdown tests"
|
|
|
|
echo
|
2021-10-20 16:42:13 +00:00
|
|
|
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 "$@"
|
2022-01-31 06:28:38 +00:00
|
|
|
|
|
|
|
echo
|
|
|
|
echo "### Emmet tests"
|
|
|
|
echo
|
2021-10-20 16:42:13 +00:00
|
|
|
node test/integration/browser/out/index.js --workspacePath $ROOT/extensions/emmet/test-workspace --extensionDevelopmentPath=$ROOT/extensions/emmet --extensionTestsPath=$ROOT/extensions/emmet/out/test "$@"
|
2022-01-31 06:28:38 +00:00
|
|
|
|
|
|
|
echo
|
|
|
|
echo "### Git tests"
|
|
|
|
echo
|
2022-05-02 12:05:30 +00:00
|
|
|
node test/integration/browser/out/index.js --workspacePath $(mktemp -d 2>/dev/null) --extensionDevelopmentPath=$ROOT/extensions/git --extensionTestsPath=$ROOT/extensions/git/out/test "$@"
|
2022-02-02 02:22:46 +00:00
|
|
|
|
|
|
|
echo
|
|
|
|
echo "### Ipynb tests"
|
|
|
|
echo
|
2022-05-02 12:05:30 +00:00
|
|
|
node test/integration/browser/out/index.js --workspacePath $(mktemp -d 2>/dev/null) --extensionDevelopmentPath=$ROOT/extensions/ipynb --extensionTestsPath=$ROOT/extensions/ipynb/out/test "$@"
|
2022-02-02 02:22:46 +00:00
|
|
|
|
2022-06-14 07:08:27 +00:00
|
|
|
echo
|
|
|
|
echo "### Configuration editing tests"
|
|
|
|
echo
|
|
|
|
node test/integration/browser/out/index.js --workspacePath $(mktemp -d 2>/dev/null) --extensionDevelopmentPath=$ROOT/extensions/configuration-editing --extensionTestsPath=$ROOT/extensions/configuration-editing/out/test "$@"
|
|
|
|
|