@@ -127,7 +127,7 @@ export async function commonRunTestsHandler(controller: vscode.TestController, r
127
127
return ;
128
128
}
129
129
130
- const username : string = server . username || 'UnknownUser' ;
130
+ const username : string = ( serverSpec . username || 'UnknownUser' ) . toLowerCase ( ) ;
131
131
132
132
// When client-side mode is using 'objectscript.conn.docker-compose the first piece of 'authority' is blank,
133
133
if ( authority . startsWith ( ":" ) ) {
@@ -182,18 +182,18 @@ export async function commonRunTestsHandler(controller: vscode.TestController, r
182
182
// Compute the testspec argument for %UnitTest.Manager.RunTest() call.
183
183
// Typically it is a testsuite, the subfolder where we copied all the testclasses,
184
184
// but if only a single method of a single class is being tested we will also specify testcase and testmethod.
185
- let testSpec = serverSpec . username ;
185
+ let testSpec = username ;
186
186
if ( request . include ?. length === 1 ) {
187
187
const idParts = request . include [ 0 ] . id . split ( ":" ) ;
188
188
if ( idParts . length === 4 ) {
189
- testSpec = `${ serverSpec . username } :${ idParts [ 2 ] } :${ idParts [ 3 ] } ` ;
189
+ testSpec = `${ username } :${ idParts [ 2 ] } :${ idParts [ 3 ] } ` ;
190
190
}
191
191
}
192
192
193
193
const configuration = {
194
194
"type" : "objectscript" ,
195
195
"request" : "launch" ,
196
- "name" : `${ controller . id . split ( "-" ) . pop ( ) } Tests:${ serverSpec . name } :${ namespace } :${ serverSpec . username } ` ,
196
+ "name" : `${ controller . id . split ( "-" ) . pop ( ) } Tests:${ serverSpec . name } :${ namespace } :${ username } ` ,
197
197
"program" : `##class(%UnitTest.Manager).RunTest("${ testSpec } ","${ runQualifiers } ")` ,
198
198
199
199
// Extra properties needed by our DebugAdapterTracker
0 commit comments