@@ -6,6 +6,7 @@ import { extractBetweenDelimiters, flattenTestFiles, convertFileToPackage } from
66import * as vscode from 'vscode' ;
77import * as path from 'path' ;
88import { PythonSettings } from '../../common/configSettings' ;
9+ import { OutputChannel } from 'vscode' ;
910
1011const pythonSettings = PythonSettings . getInstance ( ) ;
1112
@@ -17,7 +18,7 @@ const argsToExcludeForDiscovery = ['-x', '--exitfirst',
1718 '--disable-pytest-warnings' , '-l' , '--showlocals' ] ;
1819const settingsInArgsToExcludeForDiscovery = [ ] ;
1920
20- export function discoverTests ( rootDirectory : string , args : string [ ] , token : vscode . CancellationToken , ignoreCache : boolean ) : Promise < Tests > {
21+ export function discoverTests ( rootDirectory : string , args : string [ ] , token : vscode . CancellationToken , ignoreCache : boolean , outChannel : OutputChannel ) : Promise < Tests > {
2122 let logOutputLines : string [ ] = [ '' ] ;
2223 let testFiles : TestFile [ ] = [ ] ;
2324 let parentNodes : { indent : number , item : TestFile | TestSuite } [ ] = [ ] ;
@@ -86,6 +87,7 @@ export function discoverTests(rootDirectory: string, args: string[], token: vsco
8687
8788 return execPythonFile ( pythonSettings . unitTest . pyTestPath , args . concat ( [ '--collect-only' ] ) , rootDirectory , false , null , token )
8889 . then ( data => {
90+ outChannel . appendLine ( data ) ;
8991 processOutput ( data ) ;
9092 if ( token && token . isCancellationRequested ) {
9193 return Promise . reject < Tests > ( 'cancelled' ) ;
0 commit comments