mirror of
https://github.com/Microsoft/vscode
synced 2024-10-01 08:50:48 +00:00
adopt test-extension for colorize & configuration-editing (#195691)
* adopt test-extension for colorize & configuration-editing * update * fixes
This commit is contained in:
parent
b277683dbe
commit
31e5940fb0
|
@ -31,6 +31,16 @@ const extensions = [
|
||||||
workspaceFolder: path.join(os.tmpdir(), `nbout-${Math.floor(Math.random() * 100000)}`),
|
workspaceFolder: path.join(os.tmpdir(), `nbout-${Math.floor(Math.random() * 100000)}`),
|
||||||
mocha: { timeout: 60_000 }
|
mocha: { timeout: 60_000 }
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: 'vscode-colorize-tests',
|
||||||
|
workspaceFolder: `extensions/vscode-colorize-tests/test`,
|
||||||
|
mocha: { timeout: 60_000 }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: 'configuration-editing',
|
||||||
|
workspaceFolder: path.join(os.tmpdir(), `confeditout-${Math.floor(Math.random() * 100000)}`),
|
||||||
|
mocha: { timeout: 60_000 }
|
||||||
|
},
|
||||||
{
|
{
|
||||||
label: 'github-authentication',
|
label: 'github-authentication',
|
||||||
workspaceFolder: path.join(os.tmpdir(), `msft-auth-${Math.floor(Math.random() * 100000)}`),
|
workspaceFolder: path.join(os.tmpdir(), `msft-auth-${Math.floor(Math.random() * 100000)}`),
|
||||||
|
|
|
@ -49,7 +49,7 @@ if %errorlevel% neq 0 exit /b %errorlevel%
|
||||||
|
|
||||||
echo.
|
echo.
|
||||||
echo ### Colorize tests
|
echo ### Colorize tests
|
||||||
call "%INTEGRATION_TEST_ELECTRON_PATH%" %~dp0\..\extensions\vscode-colorize-tests\test --extensionDevelopmentPath=%~dp0\..\extensions\vscode-colorize-tests --extensionTestsPath=%~dp0\..\extensions\vscode-colorize-tests\out %API_TESTS_EXTRA_ARGS%
|
call yarn test-extension -l vscode-colorize-tests
|
||||||
if %errorlevel% neq 0 exit /b %errorlevel%
|
if %errorlevel% neq 0 exit /b %errorlevel%
|
||||||
|
|
||||||
echo.
|
echo.
|
||||||
|
@ -89,7 +89,7 @@ echo.
|
||||||
echo ### Configuration editing tests
|
echo ### Configuration editing tests
|
||||||
set CFWORKSPACE=%TEMPDIR%\cf-%RANDOM%
|
set CFWORKSPACE=%TEMPDIR%\cf-%RANDOM%
|
||||||
mkdir %CFWORKSPACE%
|
mkdir %CFWORKSPACE%
|
||||||
call "%INTEGRATION_TEST_ELECTRON_PATH%" %CFWORKSPACE% --extensionDevelopmentPath=%~dp0\..\extensions\configuration-editing --extensionTestsPath=%~dp0\..\extensions\configuration-editing\out\test %API_TESTS_EXTRA_ARGS%
|
call yarn test-extension -l configuration-editing
|
||||||
if %errorlevel% neq 0 exit /b %errorlevel%
|
if %errorlevel% neq 0 exit /b %errorlevel%
|
||||||
|
|
||||||
echo.
|
echo.
|
||||||
|
|
|
@ -67,7 +67,7 @@ kill_app
|
||||||
echo
|
echo
|
||||||
echo "### Colorize tests"
|
echo "### Colorize tests"
|
||||||
echo
|
echo
|
||||||
"$INTEGRATION_TEST_ELECTRON_PATH" $LINUX_EXTRA_ARGS $ROOT/extensions/vscode-colorize-tests/test --extensionDevelopmentPath=$ROOT/extensions/vscode-colorize-tests --extensionTestsPath=$ROOT/extensions/vscode-colorize-tests/out $API_TESTS_EXTRA_ARGS
|
yarn test-extension -l vscode-colorize-tests
|
||||||
kill_app
|
kill_app
|
||||||
|
|
||||||
echo
|
echo
|
||||||
|
@ -109,7 +109,7 @@ kill_app
|
||||||
echo
|
echo
|
||||||
echo "### Configuration editing tests"
|
echo "### Configuration editing tests"
|
||||||
echo
|
echo
|
||||||
"$INTEGRATION_TEST_ELECTRON_PATH" $LINUX_EXTRA_ARGS $(mktemp -d 2>/dev/null) --extensionDevelopmentPath=$ROOT/extensions/configuration-editing --extensionTestsPath=$ROOT/extensions/configuration-editing/out/test $API_TESTS_EXTRA_ARGS
|
yarn test-extension -l configuration-editing
|
||||||
kill_app
|
kill_app
|
||||||
|
|
||||||
echo
|
echo
|
||||||
|
|
Loading…
Reference in a new issue