Move the tests out to their own tasks (#11179)

* Move the tests out to their own tasks

* Revert change

* Lets try this

* Actually reference to the tests

* Lets try this

* lets try this too?

* this one?

* Manually define them :(

* Formatting

* Add the node command

* Fix machine learning and address comments
This commit is contained in:
Amir Omidi
2020-07-02 17:51:21 -07:00
committed by GitHub
parent ecfac10949
commit 2d989e1180
3 changed files with 20 additions and 13 deletions

View File

@@ -20,7 +20,7 @@ const extensionList = [
//'mssql',
'notebook',
'resource-deployment',
'machine-learning-services',
'machine-learning',
'sql-database-projects'];
let argv = require('yargs')
@@ -63,11 +63,12 @@ for (const ext of argv.extensions) {
console.log(`*** starting ${ext} tests ***`);
console.log('*'.repeat(ext.length + 23));
const command = `${process.env.INTEGRATION_TEST_ELECTRON_PATH} --extensionDevelopmentPath=${path.join(__dirname, '..', 'extensions', ext)} --extensionTestsPath=${path.join(__dirname, '..', 'extensions', ext, 'out', 'test')} --user-data-dir=${VSCODEUSERDATADIR} --extensions-dir=${VSCODEEXTENSIONSDIR} --remote-debugging-port=9222 --disable-telemetry --disable-crash-reporter --disable-updates --nogpu`;
console.log(execSync(command, {stdio: 'inherit'}));
const command = `${process.env.INTEGRATION_TEST_ELECTRON_PATH} --no-sandbox --extensionDevelopmentPath=${path.join(__dirname, '..', 'extensions', ext)} --extensionTestsPath=${path.join(__dirname, '..', 'extensions', ext, 'out', 'test')} --user-data-dir=${VSCODEUSERDATADIR} --extensions-dir=${VSCODEEXTENSIONSDIR} --remote-debugging-port=9222 --disable-telemetry --disable-crash-reporter --disable-updates --nogpu`;
console.log(`Command used: ${command}`);
console.log(execSync(command, { stdio: 'inherit' }));
}
// clean up
fs.remove(VSCODEUSERDATADIR, { recursive: true });
fs.remove(VSCODEEXTENSIONSDIR, { recursive: true });
fs.remove(VSCODEUSERDATADIR, { recursive: true }).catch(console.error);
fs.remove(VSCODEEXTENSIONSDIR, { recursive: true }).catch(console.error);