diff --git a/build/ci/templates/test_phases.yml b/build/ci/templates/test_phases.yml index 57151c964efb..75f772f5b462 100644 --- a/build/ci/templates/test_phases.yml +++ b/build/ci/templates/test_phases.yml @@ -553,7 +553,7 @@ steps: npm run package npx gulp clean:cleanExceptTests cp -r ./tmp/test ./out/test - npm run testSmoke + node ./out/test/smokeTest.js displayName: 'Run Smoke Tests' condition: and(succeeded(), contains(variables['TestsToRun'], 'testSmoke')) env: diff --git a/src/test/standardTest.ts b/src/test/standardTest.ts index f76d712fba62..237960cb1fcf 100644 --- a/src/test/standardTest.ts +++ b/src/test/standardTest.ts @@ -7,12 +7,13 @@ import { EXTENSION_ROOT_DIR_FOR_TESTS } from './constants'; process.env.IS_CI_SERVER_TEST_DEBUGGER = ''; process.env.VSC_PYTHON_CI_TEST = '1'; const workspacePath = process.env.CODE_TESTS_WORKSPACE ? process.env.CODE_TESTS_WORKSPACE : path.join(__dirname, '..', '..', 'src', 'test'); +const extensionDevelopmentPath = process.env.CODE_EXTENSIONS_PATH ? process.env.CODE_EXTENSIONS_PATH : EXTENSION_ROOT_DIR_FOR_TESTS; function start() { console.log('*'.repeat(100)); console.log('Start Standard tests'); runTests({ - extensionDevelopmentPath: EXTENSION_ROOT_DIR_FOR_TESTS, + extensionDevelopmentPath: extensionDevelopmentPath, extensionTestsPath: path.join(EXTENSION_ROOT_DIR_FOR_TESTS, 'out', 'test', 'index'), launchArgs: [workspacePath], version: 'stable'