@@ -14,7 +14,7 @@ import {
14
14
TestCommandOptions ,
15
15
TestExecutionCommand ,
16
16
} from '../common/types' ;
17
- import { traceError , traceInfo , traceLog } from '../../../logging' ;
17
+ import { traceError , traceInfo , traceLog , traceVerbose } from '../../../logging' ;
18
18
import { MESSAGE_ON_TESTING_OUTPUT_MOVE , fixLogLinesNoTrailing } from '../common/utils' ;
19
19
import { EnvironmentVariables , IEnvironmentVariablesProvider } from '../../../common/variables/types' ;
20
20
import {
@@ -130,7 +130,11 @@ export class UnittestTestExecutionAdapter implements ITestExecutionAdapter {
130
130
// create named pipe server to send test ids
131
131
const testIdsFileName = await utils . writeTestIdsFile ( testIds ) ;
132
132
mutableEnv . RUN_TEST_IDS_PIPE = testIdsFileName ;
133
- traceInfo ( `All environment variables set for pytest execution: ${ JSON . stringify ( mutableEnv ) } ` ) ;
133
+ traceInfo (
134
+ `All environment variables set for unittest execution, PYTHONPATH: ${ JSON . stringify (
135
+ mutableEnv . PYTHONPATH ,
136
+ ) } `,
137
+ ) ;
134
138
135
139
const spawnOptions : SpawnOptions = {
136
140
token : options . token ,
@@ -145,6 +149,10 @@ export class UnittestTestExecutionAdapter implements ITestExecutionAdapter {
145
149
resource : options . workspaceFolder ,
146
150
} ;
147
151
const execService = await executionFactory ?. createActivatedEnvironment ( creationOptions ) ;
152
+
153
+ const execInfo = await execService ?. getExecutablePath ( ) ;
154
+ traceVerbose ( `Executable path for unittest execution: ${ execInfo } .` ) ;
155
+
148
156
const args = [ options . command . script ] . concat ( options . command . args ) ;
149
157
150
158
if ( options . outChannel ) {
0 commit comments