Run a single test case by index
(test_index: int)
| 291 | |
| 292 | # Manual test runner for debugging |
| 293 | async def run_single_test(test_index: int): |
| 294 | """Run a single test case by index""" |
| 295 | if test_index < 0 or test_index >= len(TEST_CASES): |
| 296 | print(f"Invalid test index: {test_index}") |
| 297 | return |
| 298 | |
| 299 | test_case = TEST_CASES[test_index] |
| 300 | print(f"Running test {test_index + 1}: {test_case.name}") |
| 301 | |
| 302 | try: |
| 303 | await test_cli_mapping(test_case) |
| 304 | print(f"✓ Test passed") |
| 305 | except Exception as e: |
| 306 | print(f"✗ Test failed: {e}") |
| 307 | |
| 308 | |
| 309 | # Main runner for standalone execution |
no test coverage detected