File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 207207 help = "get subset list from git managed files" ,
208208 is_flag = True ,
209209)
210+ @click .option (
211+ "--use-case" ,
212+ "use_case" ,
213+ type = click .Choice (["one-commit" , "feature-branch" , "recurring" ]),
214+ hidden = True , # control PTS v2 test selection behavior. Non-committed, so hidden for now.
215+ )
210216@click .pass_context
211217def subset (
212218 context : click .core .Context ,
@@ -235,6 +241,7 @@ def subset(
235241 prioritized_tests_mapping_file : Optional [TextIO ] = None ,
236242 test_suite : Optional [str ] = None ,
237243 is_get_tests_from_guess : bool = False ,
244+ use_case : Optional [str ] = None ,
238245):
239246 app = context .obj
240247 tracking_client = TrackingClient (Command .SUBSET , app = app )
@@ -513,6 +520,9 @@ def get_payload(
513520 if prioritized_tests_mapping_file :
514521 payload ['prioritizedTestsMapping' ] = json .load (prioritized_tests_mapping_file )
515522
523+ if use_case :
524+ payload ["changesUnderTest" ] = use_case
525+
516526 return payload
517527
518528 def _collect_potential_test_files (self ):
You can’t perform that action at this time.
0 commit comments