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

@@ -16,6 +16,7 @@ const defaultReporterName = process.platform === 'win32' ? 'list' : 'spec';
const optimist = require('optimist')
.describe('grep', 'only run tests matching <pattern>').alias('grep', 'g').alias('grep', 'f').string('grep')
.describe('invert', 'uses the inverse of the match specified by grep').alias('invert', 'i').string('invert')
.describe('run', 'only run tests from <file>').string('run')
.describe('runGlob', 'only run tests matching <file_pattern>').alias('runGlob', 'runGrep').string('runGlob')
.describe('build', 'run with build output (out-build)').boolean('build')

View File

@@ -206,7 +206,10 @@ function runTests(opts) {
return loadTests(opts).then(() => {
if (opts.grep) {
mocha.grep(opts.grep);
mocha.grep(new RegExp(opts.grep));
if (opts.invert) {
mocha.invert();
}
}
if (!opts.debug) {