chore: Move runner app to separate package

This commit is contained in:
kayibal
2024-07-25 14:00:36 +01:00
parent f5b4c54a99
commit fcaae2f643
7 changed files with 1 additions and 1 deletions

29
testing/src/runner/cli.py Normal file
View File

@@ -0,0 +1,29 @@
import argparse
from runner import TestRunner
def main() -> None:
parser = argparse.ArgumentParser(
description="Run indexer within a specified range of blocks"
)
parser.add_argument(
"--test_yaml_path", type=str, help="Path to the test configuration YAML file."
)
parser.add_argument(
"--with_binary_logs",
action="store_true",
help="Flag to activate logs from Tycho.",
)
parser.add_argument(
"--db_url", type=str, help="Postgres database URL for the Tycho indexer."
)
args = parser.parse_args()
test_runner = TestRunner(
args.test_yaml_path, args.with_binary_logs, db_url=args.db_url
)
test_runner.run_tests()
if __name__ == "__main__":
main()