@@ -670,12 +670,24 @@ export class TestControllerManager {
670
670
await DebugManager . runTests ( workspace , [ ] , [ ] , [ ] , runId , options , dryRun ) ;
671
671
} else {
672
672
const includedInWs = testItems
673
- . map ( ( i ) => this . findRobotItem ( i ) ?. longname )
673
+ . map ( ( i ) => {
674
+ const ritem = this . findRobotItem ( i ) ;
675
+ if ( ritem ?. type == "workspace" && ritem . children ?. length ) {
676
+ return ritem . children [ 0 ] . longname ;
677
+ }
678
+ return ritem ?. longname ;
679
+ } )
674
680
. filter ( ( i ) => i !== undefined ) as string [ ] ;
675
681
const excludedInWs =
676
682
( excluded
677
683
. get ( workspace )
678
- ?. map ( ( i ) => this . findRobotItem ( i ) ?. longname )
684
+ ?. map ( ( i ) => {
685
+ const ritem = this . findRobotItem ( i ) ;
686
+ if ( ritem ?. type == "workspace" && ritem . children ?. length ) {
687
+ return ritem . children [ 0 ] . longname ;
688
+ }
689
+ return ritem ?. longname ;
690
+ } )
679
691
. filter ( ( i ) => i !== undefined ) as string [ ] ) ?? [ ] ;
680
692
681
693
const suites = new Set < string > ( ) ;
@@ -687,7 +699,11 @@ export class TestControllerManager {
687
699
if ( longname ) suites . add ( longname ) ;
688
700
}
689
701
} else {
690
- const longname = this . findRobotItem ( testItem ) ?. longname ;
702
+ const ritem = this . findRobotItem ( testItem ) ;
703
+ let longname = ritem ?. longname ;
704
+ if ( ritem ?. type == "workspace" && ritem . children ?. length ) {
705
+ longname = ritem . children [ 0 ] . longname ;
706
+ }
691
707
if ( longname ) suites . add ( longname ) ;
692
708
}
693
709
}
0 commit comments