11'use strict' ;
22import * as path from 'path' ;
3- import { execPythonFile } from './../../common/utils' ;
4- import { TestFile , TestsToRun , TestSuite , TestFunction , FlattenedTestFunction , Tests , TestStatus , FlattenedTestSuite } from '../common/contracts' ;
3+ import { execPythonFile } from './../../common/utils' ;
4+ import { TestFile , TestSuite , TestFunction , Tests } from '../common/contracts' ;
55import * as os from 'os' ;
6- import { extractBetweenDelimiters , convertFileToPackage , flattenTestFiles } from '../common/testUtils' ;
7- import { CancellationToken } from 'vscode' ;
8- import { PythonSettings } from '../../common/configSettings' ;
6+ import { extractBetweenDelimiters , convertFileToPackage , flattenTestFiles } from '../common/testUtils' ;
7+ import { CancellationToken } from 'vscode' ;
8+ import { PythonSettings } from '../../common/configSettings' ;
99
1010const pythonSettings = PythonSettings . getInstance ( ) ;
1111
@@ -23,7 +23,6 @@ const settingsInArgsToExcludeForDiscovery = ['--verbosity', '--debug', '--debug-
2323export function discoverTests ( rootDirectory : string , args : string [ ] , token : CancellationToken ) : Promise < Tests > {
2424 let logOutputLines : string [ ] = [ '' ] ;
2525 let testFiles : TestFile [ ] = [ ] ;
26- let collectionCountReported = false ;
2726
2827 // Remove unwanted arguments
2928 args = args . filter ( arg => {
@@ -100,9 +99,6 @@ function parseNoseTestModuleCollectionResult(rootDirectory: string, lines: strin
10099 let moduleName = '' ;
101100 let testFile : TestFile ;
102101 lines . forEach ( line => {
103- let x = lines ;
104- let y = x ;
105-
106102 if ( line . startsWith ( 'nose.selector: DEBUG: wantModule <module \'' ) ) {
107103 fileName = line . substring ( line . indexOf ( '\' from \'' ) + '\' from \'' . length ) ;
108104 fileName = fileName . substring ( 0 , fileName . lastIndexOf ( '\'' ) ) ;
@@ -116,7 +112,7 @@ function parseNoseTestModuleCollectionResult(rootDirectory: string, lines: strin
116112 fileName = fileName . substring ( 0 , fileName . length - 1 ) ;
117113 }
118114 currentPackage = convertFileToPackage ( fileName ) ;
119- const fullyQualifiedName = path . isAbsolute ( fileName ) ? fileName : path . resolve ( rootDirectory , fileName )
115+ const fullyQualifiedName = path . isAbsolute ( fileName ) ? fileName : path . resolve ( rootDirectory , fileName ) ;
120116 testFile = {
121117 functions : [ ] , suites : [ ] , name : fileName , nameToRun : fileName ,
122118 xmlName : currentPackage , time : 0 , functionsFailed : 0 , functionsPassed : 0 ,
0 commit comments