Run the test suite runner.
()
| 371 | |
| 372 | |
| 373 | def main(): |
| 374 | """Run the test suite runner.""" |
| 375 | parser = argparse.ArgumentParser( |
| 376 | description="GraphBit Comprehensive Test Suite Runner", |
| 377 | formatter_class=argparse.RawDescriptionHelpFormatter, |
| 378 | epilog=""" |
| 379 | Test Suites: |
| 380 | validation - Validate workflow system integrity |
| 381 | integration - Test integration between legacy and modular systems |
| 382 | workflow - Test individual workflows and orchestration |
| 383 | legacy-migration - Test legacy workflow migration process |
| 384 | all - Run all test suites (default) |
| 385 | |
| 386 | Examples: |
| 387 | python test-suite-runner.py --suite all |
| 388 | python test-suite-runner.py --suite validation --root /path/to/project |
| 389 | python test-suite-runner.py --suite workflow --github-token $GITHUB_TOKEN |
| 390 | """, |
| 391 | ) |
| 392 | |
| 393 | parser.add_argument("--suite", choices=[s.value for s in TestSuite], default="all", help="Test suite to run") |
| 394 | |
| 395 | parser.add_argument("--root", type=Path, default=Path.cwd(), help="Root directory of the project") |
| 396 | |
| 397 | parser.add_argument("--github-token", help="GitHub API token (or set GITHUB_TOKEN env var)") |
| 398 | |
| 399 | args = parser.parse_args() |
| 400 | |
| 401 | # Get GitHub token |
| 402 | github_token = args.github_token or os.environ.get("GITHUB_TOKEN") |
| 403 | |
| 404 | runner = TestSuiteRunner(args.root, github_token) |
| 405 | suite = TestSuite(args.suite) |
| 406 | success = runner.run_test_suite(suite) |
| 407 | |
| 408 | sys.exit(0 if success else 1) |
| 409 | |
| 410 | |
| 411 | if __name__ == "__main__": |
no test coverage detected