Run all test suites
(self)
| 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""" |
no test coverage detected