Skip to content

Commit c0273b5

Browse files
committed
Refactor test runner output in e2e_test.py
Simplifies test output by printing progress symbols ('.', 'F', 'E') instead of verbose messages. Removes test name display and emoji, streamlining the test summary for easier reading.
1 parent ddbe210 commit c0273b5

1 file changed

Lines changed: 13 additions & 19 deletions

File tree

tests/e2e_test.py

Lines changed: 13 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -375,39 +375,33 @@ def cleanup(self):
375375

376376
def run_all_tests(self) -> bool:
377377
"""Run simplified end-to-end tests for core platform functionality"""
378-
print("🚀 Starting AutoModerate Core Platform Tests")
378+
print("Starting AutoModerate Core Platform Tests")
379379

380380
tests = [
381-
("Health Check", self.test_health_check),
382-
("User Registration", self.register_user),
383-
("User Login", self.login_user),
384-
("Project Creation", self.create_project),
385-
("API Key Creation", self.get_api_key),
381+
self.test_health_check,
382+
self.register_user,
383+
self.login_user,
384+
self.create_project,
385+
self.get_api_key,
386386
]
387387

388388
passed = 0
389389
total = len(tests)
390390

391-
for test_name, test_func in tests:
391+
for test_func in tests:
392392
try:
393393
if test_func():
394394
passed += 1
395-
print(f"✅ {test_name}")
395+
print(".", end="", flush=True)
396396
else:
397-
print(f"❌ {test_name}")
398-
except Exception as e:
399-
print(f"❌ {test_name} (exception: {type(e).__name__})")
397+
print("F", end="", flush=True)
398+
except Exception:
399+
print("E", end="", flush=True)
400400

401401
self.cleanup()
402402

403-
print(f"\n📊 {passed}/{total} tests passed")
404-
405-
if passed == total:
406-
print("✅ All tests passed")
407-
return True
408-
else:
409-
print(f"❌ {total - passed} tests failed")
410-
return False
403+
print(f"\n\n{passed}/{total} tests passed")
404+
return passed == total
411405

412406

413407
def main():

0 commit comments

Comments
 (0)