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 829829 "launch" : {
830830 "properties" : {
831831 "target" : {
832- "type" : [" string" , " null" ],
832+ "type" : [
833+ " string" ,
834+ " null"
835+ ],
833836 "description" : " The .robot file or a folder containing .robot files to be launched." ,
834837 "default" : " ${file}"
835838 },
929932 },
930933 "description" : " Specifies the variable files for robotframework. Corresponds to the '--variablefile' option of robot."
931934 },
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+ },
932951 "launcherArgs" : {
933952 "type" : " array" ,
934953 "description" : " Extra command line arguments passed to launcher." ,
12011220 "webpack" : " ^5.75.0" ,
12021221 "webpack-cli" : " ^5.0.1"
12031222 }
1204- }
1223+ }
Original file line number Diff line number Diff line change @@ -156,6 +156,8 @@ async def _launch(
156156 variableFiles : Optional [List [str ]] = None ,
157157 languages : Optional [List [str ]] = None ,
158158 arguments : Optional [LaunchRequestArguments ] = None ,
159+ include : Optional [List [str ]] = None ,
160+ exclude : Optional [List [str ]] = None ,
159161 * _args : Any ,
160162 ** _kwargs : Any ,
161163 ) -> None :
@@ -226,6 +228,14 @@ async def _launch(
226228 for k , v in variables .items ():
227229 run_args += ["-v" , f"{ k } :{ v } " ]
228230
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+
229239 run_args += args or []
230240
231241 if paths :
You can’t perform that action at this time.
0 commit comments