Add unstable test params for core and extension tests (#7513)

* Add unstable test params for core and extension tests

* unset invert options for unstable script runs

* Fix copypasta

* Add nogpu to dacpac tests
This commit is contained in:
Charles Gagnon
2019-10-07 10:18:02 -07:00
committed by GitHub
parent ac87346507
commit effa50a9bd
24 changed files with 355 additions and 43 deletions

View File

@@ -6,7 +6,7 @@
const path = require('path');
const testRunner = require('vscode/lib/testrunner');
const suite = 'DacFx Tests';
const suite = 'dacpac Extension Tests';
const testOptions: any = {
ui: 'bdd',
@@ -14,9 +14,23 @@ const testOptions: any = {
timeout: 60000
};
// const coverageConfig: any = {
// coverConfig: '../../coverageConfig.json'
// };
// set relevant mocha options from the environment
if (process.env.ADS_TEST_GREP) {
testOptions.grep = process.env.ADS_TEST_GREP;
console.log(`setting options.grep to: ${testOptions.grep}`);
}
if (process.env.ADS_TEST_INVERT_GREP) {
testOptions.invert = parseInt(process.env.ADS_TEST_INVERT_GREP);
console.log(`setting options.invert to: ${testOptions.invert}`);
}
if (process.env.ADS_TEST_TIMEOUT) {
testOptions.timeout = parseInt(process.env.ADS_TEST_TIMEOUT);
console.log(`setting options.timeout to: ${testOptions.timeout}`);
}
if (process.env.ADS_TEST_RETRIES) {
testOptions.retries = parseInt(process.env.ADS_TEST_RETRIES);
console.log(`setting options.retries to: ${testOptions.retries}`);
}
if (process.env.BUILD_ARTIFACTSTAGINGDIRECTORY) {
testOptions.reporter = 'mocha-multi-reporters';