MCPcopy
hub / github.com/tanelpoder/0xtools / run_all

Method run_all

xtop/tests/test_runner.py:285–318  ·  view source on GitHub ↗

Run all test suites

(self)

Source from the content-addressed store, hash-verified

283 return suite
284
285 def run_all(self) -> bool:
286 """Run all test suites"""
287 print(f"\n{BOLD}{BLUE}{'=' * 60}{RESET}")
288 print(f"{BOLD}{BLUE}XTOP Test Runner{RESET}")
289 print(f"{BOLD}{BLUE}{'=' * 60}{RESET}")
290 print(f"\nData directory: {self.datadir}")
291 print(f"Time range: {self.from_time} to {self.to_time}")
292
293 # Create test suites
294 self.suites = [
295 self.create_basic_suite(),
296 self.create_latency_suite(),
297 self.create_stack_suite(),
298 self.create_advanced_suite(),
299 self.create_format_suite(),
300 self.create_schema_suite(),
301 self.create_ui_suite(),
302 ]
303
304 # Run all suites
305 total_passed = 0
306 total_failed = 0
307 total_duration = 0.0
308
309 for suite in self.suites:
310 success = suite.run(self.verbose)
311 total_passed += suite.passed
312 total_failed += suite.failed
313 total_duration += suite.duration
314
315 # Print summary
316 self.print_summary(total_passed, total_failed, total_duration)
317
318 return total_failed == 0
319
320 def run_suite(self, suite_name: str) -> bool:
321 """Run a specific test suite"""

Callers 1

mainFunction · 0.95

Calls 9

create_basic_suiteMethod · 0.95
create_latency_suiteMethod · 0.95
create_stack_suiteMethod · 0.95
create_advanced_suiteMethod · 0.95
create_format_suiteMethod · 0.95
create_schema_suiteMethod · 0.95
create_ui_suiteMethod · 0.95
print_summaryMethod · 0.95
runMethod · 0.80

Tested by

no test coverage detected