rename functions
This commit is contained in:
parent
fec4e0a6ea
commit
4f8bceb587
2 changed files with 7 additions and 11 deletions
|
|
@ -49,7 +49,7 @@ def run():
|
||||||
recipes_dir=args.recipes_dir,
|
recipes_dir=args.recipes_dir,
|
||||||
timeout=args.timeout,
|
timeout=args.timeout,
|
||||||
)
|
)
|
||||||
coordinator.setup_test()
|
coordinator.prepare_tests()
|
||||||
coordinator.run_test()
|
coordinator.run_tests()
|
||||||
coordinator.combine_html()
|
coordinator.combine_html()
|
||||||
coordinator.collect_traces()
|
coordinator.collect_traces()
|
||||||
|
|
|
||||||
|
|
@ -32,19 +32,15 @@ class Coordinator:
|
||||||
self.ENV = EnvManager(env_paths=env_paths, RUNNER_DICT=self.RUNNER_DICT)
|
self.ENV = EnvManager(env_paths=env_paths, RUNNER_DICT=self.RUNNER_DICT)
|
||||||
self.TIMEOUT = timeout
|
self.TIMEOUT = timeout
|
||||||
|
|
||||||
# todo: prepare tests
|
def prepare_tests(self) -> None:
|
||||||
def setup_test(self) -> None:
|
logger.info("calling prepare_tests()")
|
||||||
logger.info("calling setup_test()")
|
|
||||||
self.DIR.create_all_dirs()
|
self.DIR.create_all_dirs()
|
||||||
self.ENV.copy_env_files(self.DIR)
|
self.ENV.copy_env_files(self.DIR)
|
||||||
# todo: check that tests are unique
|
# todo: check that tests are unique
|
||||||
# todo: create random testuser creds and load them
|
# todo: create random testuser creds and load them
|
||||||
|
|
||||||
# todo: run setups
|
def run_tests(self) -> None:
|
||||||
# todo: run tests
|
logger.info("calling run_tests()")
|
||||||
# todo: run cleanups
|
|
||||||
def run_test(self) -> None:
|
|
||||||
logger.info("calling run_test()")
|
|
||||||
self.runners: list[Runner] = self._load_runners(self.ENV.env_files)
|
self.runners: list[Runner] = self._load_runners(self.ENV.env_files)
|
||||||
for runner in self.runners:
|
for runner in self.runners:
|
||||||
runner.run_setups()
|
runner.run_setups()
|
||||||
|
|
@ -52,7 +48,7 @@ class Coordinator:
|
||||||
runner.run_tests()
|
runner.run_tests()
|
||||||
for runner in self.runners:
|
for runner in self.runners:
|
||||||
runner.run_cleanups()
|
runner.run_cleanups()
|
||||||
logger.info("run_test() finished")
|
logger.info("run_tests() finished")
|
||||||
|
|
||||||
def _load_runners(self, env_files: list[EnvFile]) -> list[Runner]:
|
def _load_runners(self, env_files: list[EnvFile]) -> list[Runner]:
|
||||||
"""Creates an instance of the correct Runner class for each given env file"""
|
"""Creates an instance of the correct Runner class for each given env file"""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue