File tree Expand file tree Collapse file tree
tests/regression/ba-issues Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -244,7 +244,7 @@ If you add the test case under directory `issues` but forget to add the running
244244 Passed: 21
245245 Failed: 0
246246 missed: 0
247- Left issues in folder: { 3022}
247+ Left issues in folder: # 3022
248248 Cases in JSON but not found in folder: no more
249249```
250250
@@ -256,8 +256,8 @@ If you add the test case in `running_config.json` but used the wrong id or forge
256256 Passed: 21
257257 Failed: 0
258258 missed: 0
259- Left issues in folder: { 2855}
260- Cases in JSON but not found in folder: {100000}
259+ Left issues in folder: # 2855
260+ Cases in JSON but not found in folder: # 12345
261261```
262262
263263If some test case are failing, then it will be something like
Original file line number Diff line number Diff line change @@ -254,17 +254,26 @@ def process_and_run_test_cases(
254254 total = len (passed_ids ) + len (failed_ids )
255255 passed = len (passed_ids )
256256 failed = len (failed_ids )
257- issue_ids_should_test = (
258- issue_ids_should_test if issue_ids_should_test else "no more"
257+
258+ format_issue_ids_should_test = (
259+ " " .join ("#" + str (x ) for x in issue_ids_should_test )
260+ if issue_ids_should_test
261+ else "no more"
262+ )
263+ format_json_only_ids = (
264+ " " .join ("#" + str (x ) for x in json_only_ids ) if json_only_ids else "no more"
259265 )
260- json_only_ids = json_only_ids if json_only_ids else "no more"
266+
261267 print (f"####################################" )
262268 print (f"==== Test results ====" )
263269 print (f" Total: { total } " )
264270 print (f" Passed: { passed } " )
265271 print (f" Failed: { failed } " )
266- print (f" Left issues in folder: { issue_ids_should_test } " )
267- print (f" Cases in JSON but not found in folder: { json_only_ids } " )
272+ if not selected_ids :
273+ print (f" Left issues in folder: { format_issue_ids_should_test } " )
274+ print (f" Cases in JSON but not found in folder: { format_json_only_ids } " )
275+ else :
276+ print (f" Issues not found in folder: { format_issue_ids_should_test } " )
268277
269278
270279def main ():
You can’t perform that action at this time.
0 commit comments