MCPcopy Index your code
hub / github.com/InfinitiBit/graphbit / main

Function main

scripts/test-suite-runner.py:373–408  ·  view source on GitHub ↗

Run the test suite runner.

()

Source from the content-addressed store, hash-verified

371
372
373def 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="""
379Test 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
386Examples:
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
411if __name__ == "__main__":

Callers 1

Calls 4

run_test_suiteMethod · 0.95
TestSuiteRunnerClass · 0.85
TestSuiteClass · 0.85
getMethod · 0.45

Tested by

no test coverage detected