feat(testing): add a script for Tycho integration testing

This commit is contained in:
Florian Pellissier
2024-05-16 09:42:28 +02:00
parent 226ec98cf8
commit 8cc526527e
8 changed files with 490 additions and 2 deletions

24
testing/cli.py Normal file
View File

@@ -0,0 +1,24 @@
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.",
)
args = parser.parse_args()
test_runner = TestRunner(args.test_yaml_path, args.with_binary_logs)
test_runner.run_tests()
if __name__ == "__main__":
main()