mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
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:
@@ -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')
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user