File tree Expand file tree Collapse file tree 2 files changed +31
-2
lines changed
robotcode/debugger/launcher Expand file tree Collapse file tree 2 files changed +31
-2
lines changed Original file line number Diff line number Diff line change 829
829
"launch" : {
830
830
"properties" : {
831
831
"target" : {
832
- "type" : [" string" , " null" ],
832
+ "type" : [
833
+ " string" ,
834
+ " null"
835
+ ],
833
836
"description" : " The .robot file or a folder containing .robot files to be launched." ,
834
837
"default" : " ${file}"
835
838
},
929
932
},
930
933
"description" : " Specifies the variable files for robotframework. Corresponds to the '--variablefile' option of robot."
931
934
},
935
+ "include" : {
936
+ "type" : " array" ,
937
+ "default" : [],
938
+ "items" : {
939
+ "type" : " string"
940
+ },
941
+ "description" : " Specifies the tags that should be included in test run. Corresponds to the '--include' option of robot."
942
+ },
943
+ "exclude" : {
944
+ "type" : " array" ,
945
+ "default" : [],
946
+ "items" : {
947
+ "type" : " string"
948
+ },
949
+ "description" : " Specifies the tags that should be excluded in test run. Corresponds to the '--excluded' option of robot."
950
+ },
932
951
"launcherArgs" : {
933
952
"type" : " array" ,
934
953
"description" : " Extra command line arguments passed to launcher." ,
1201
1220
"webpack" : " ^5.75.0" ,
1202
1221
"webpack-cli" : " ^5.0.1"
1203
1222
}
1204
- }
1223
+ }
Original file line number Diff line number Diff line change @@ -156,6 +156,8 @@ async def _launch(
156
156
variableFiles : Optional [List [str ]] = None ,
157
157
languages : Optional [List [str ]] = None ,
158
158
arguments : Optional [LaunchRequestArguments ] = None ,
159
+ include : Optional [List [str ]] = None ,
160
+ exclude : Optional [List [str ]] = None ,
159
161
* _args : Any ,
160
162
** _kwargs : Any ,
161
163
) -> None :
@@ -226,6 +228,14 @@ async def _launch(
226
228
for k , v in variables .items ():
227
229
run_args += ["-v" , f"{ k } :{ v } " ]
228
230
231
+ if include :
232
+ for v in include :
233
+ run_args += ["-i" , f"{ v } " ]
234
+
235
+ if exclude :
236
+ for v in exclude :
237
+ run_args += ["-e" , f"{ v } " ]
238
+
229
239
run_args += args or []
230
240
231
241
if paths :
You can’t perform that action at this time.
0 commit comments