@@ -127,7 +127,7 @@ export async function commonRunTestsHandler(controller: vscode.TestController, r
127127 return ;
128128 }
129129
130- const username : string = server . username || 'UnknownUser' ;
130+ const username : string = ( serverSpec . username || 'UnknownUser' ) . toLowerCase ( ) ;
131131
132132 // When client-side mode is using 'objectscript.conn.docker-compose the first piece of 'authority' is blank,
133133 if ( authority . startsWith ( ":" ) ) {
@@ -182,18 +182,18 @@ export async function commonRunTestsHandler(controller: vscode.TestController, r
182182 // Compute the testspec argument for %UnitTest.Manager.RunTest() call.
183183 // Typically it is a testsuite, the subfolder where we copied all the testclasses,
184184 // 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 ;
186186 if ( request . include ?. length === 1 ) {
187187 const idParts = request . include [ 0 ] . id . split ( ":" ) ;
188188 if ( idParts . length === 4 ) {
189- testSpec = `${ serverSpec . username } :${ idParts [ 2 ] } :${ idParts [ 3 ] } ` ;
189+ testSpec = `${ username } :${ idParts [ 2 ] } :${ idParts [ 3 ] } ` ;
190190 }
191191 }
192192
193193 const configuration = {
194194 "type" : "objectscript" ,
195195 "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 } ` ,
197197 "program" : `##class(%UnitTest.Manager).RunTest("${ testSpec } ","${ runQualifiers } ")` ,
198198
199199 // Extra properties needed by our DebugAdapterTracker
0 commit comments