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

Method run_suite

xtop/tests/test_runner.py:320–338  ·  view source on GitHub ↗

Run a specific test suite

(self, suite_name: str)

Source from the content-addressed store, hash-verified

318 return total_failed == 0
319
320 def run_suite(self, suite_name: str) -> bool:
321 """Run a specific test suite"""
322 suite_map = {
323 'basic': self.create_basic_suite,
324 'latency': self.create_latency_suite,
325 'stack': self.create_stack_suite,
326 'advanced': self.create_advanced_suite,
327 'format': self.create_format_suite,
328 'schema': self.create_schema_suite,
329 'ui': self.create_ui_suite,
330 }
331
332 if suite_name not in suite_map:
333 print(f"{RED}Unknown suite: {suite_name}{RESET}")
334 print(f"Available suites: {', '.join(suite_map.keys())}")
335 return False
336
337 suite = suite_map[suite_name]()
338 return suite.run(self.verbose)
339
340 def print_summary(self, passed: int, failed: int, duration: float):
341 """Print test results summary"""

Callers 1

mainFunction · 0.95

Calls 1

runMethod · 0.80

Tested by

no test coverage detected