Skip to content

Commit 30947ce

Browse files
committed
clearn up test args
1 parent d24e239 commit 30947ce

2 files changed

Lines changed: 14 additions & 19 deletions

File tree

src/client/unittests/nosetest/collector.ts

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,13 @@ import { PythonSettings } from '../../common/configSettings';
99

1010
const pythonSettings = PythonSettings.getInstance();
1111

12-
const argsToExcludeForDiscovery = ['-v', '--verbose', 'l DEBUG', '--debug=DEBUG', '-x',
13-
'--stop', '--cover-erase', '--cover-tests', '--cover-inclusive', '--cover-html',
14-
'--cover-branches', '--cover-xml', '--pdb', '--pdb-failures', '--pdb-errors',
15-
'--no-deprecated', '-d', '--detailed-errors', ' --failure-detail', '--process-restartworker',
16-
'--with-xunit'];
17-
const settingsInArgsToExcludeForDiscovery = ['--verbosity', '--debug', '--debug-log',
18-
'--logging-format', '--logging-datefmt', '--logging-filter', '--logging-level',
19-
'--cover-package', '--cover-min-percentage', '--cover-html-dir', '--cover-xml-file',
20-
'--profile-sort', '--profile-stats-file', '--profile-restrict', '--id-file',
21-
'--failed', '--processes', '--process-timeout', '--xunit-file', '--xunit-testsuite-name'];
12+
const argsToExcludeForDiscovery = ['-v', '--verbose',
13+
'-q', '--quiet', '-x', '--stop',
14+
'--with-coverage', '--cover-erase', '--cover-tests',
15+
'--cover-inclusive', '--cover-html', '--cover-branches', '--cover-xml',
16+
'--pdb', '--pdb-failures', '--pdb-errors',
17+
'--failed', '--process-restartworker', '--with-xunit'];
18+
const settingsInArgsToExcludeForDiscovery = ['--verbosity'];
2219

2320
export function discoverTests(rootDirectory: string, args: string[], token: CancellationToken): Promise<Tests> {
2421
let logOutputLines: string[] = [''];

src/client/unittests/pytest/collector.ts

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,13 @@ import { PythonSettings } from '../../common/configSettings';
99

1010
const pythonSettings = PythonSettings.getInstance();
1111

12-
const argsToExcludeForDiscovery = ['--lf', '--last-failed', '--markers', '-x',
13-
'--exitfirst', '--maxfail', '--fixtures', '--funcargs', '-pdb', '--capture',
14-
'-s', ' --runxfail', ' --ff', '--failed-first', '--cache-show', '--cache-clear',
15-
'-v', '--verbose', '-q', '-quiet', '-r ', '--report', '--tb', '--color',
16-
'--durations', '--pastebin', '--junit-xml=path', '--junit-prefix',
17-
'--result-log', '--version', '-h', '--help', '--debug'];
18-
const settingsInArgsToExcludeForDiscovery = ['--maxfail', '--capture',
19-
'-r ', '--report', '--tb', '--color', '--durations', '--pastebin',
20-
'--junit-xml=path', '--junit-prefix', '--result-log'];
12+
const argsToExcludeForDiscovery = ['-x', '--exitfirst',
13+
'--fixtures-per-test', '--pdb', '--runxfail',
14+
'--lf', '--last-failed', '--ff', '--failed-first',
15+
'--cache-show', '--cache-clear',
16+
'-v', '--verbose', '-q', '-quiet',
17+
'--disable-pytest-warnings', '-l', '--showlocals'];
18+
const settingsInArgsToExcludeForDiscovery = [];
2119

2220
export function discoverTests(rootDirectory: string, args: string[], token: vscode.CancellationToken, ignoreCache: boolean): Promise<Tests> {
2321
let logOutputLines: string[] = [''];

0 commit comments

Comments
 (0)