Add aftermath logs
This commit is contained in:
@@ -89,6 +89,9 @@ class TestRunner:
|
|||||||
def run_tests(self) -> None:
|
def run_tests(self) -> None:
|
||||||
"""Run all tests specified in the configuration."""
|
"""Run all tests specified in the configuration."""
|
||||||
print(f"Running tests ...")
|
print(f"Running tests ...")
|
||||||
|
|
||||||
|
failed_tests = []
|
||||||
|
|
||||||
for test in self.config.tests:
|
for test in self.config.tests:
|
||||||
self.tycho_runner.empty_database(self.db_url)
|
self.tycho_runner.empty_database(self.db_url)
|
||||||
|
|
||||||
@@ -109,9 +112,18 @@ class TestRunner:
|
|||||||
)
|
)
|
||||||
|
|
||||||
if result.success:
|
if result.success:
|
||||||
print(f"✅ {test.name} passed.")
|
print(f"\n✅ {test.name} passed.\n")
|
||||||
else:
|
else:
|
||||||
print(f"❗️ {test.name} failed: {result.message}")
|
print(f"\n❗️ {test.name} failed: {result.message}\n")
|
||||||
|
|
||||||
|
print(
|
||||||
|
"\nTest finished! \n"
|
||||||
|
f"Passed: {len(self.config.tests) - len(failed_tests)}/{len(self.config.tests)}\n"
|
||||||
|
)
|
||||||
|
if failed_tests:
|
||||||
|
print("Failed tests:")
|
||||||
|
for failed_test in failed_tests:
|
||||||
|
print(failed_test)
|
||||||
|
|
||||||
def validate_state(
|
def validate_state(
|
||||||
self,
|
self,
|
||||||
|
|||||||
Reference in New Issue
Block a user