Categorize test based on its name and path.
(self, test_name: str)
| 365 | return sorted(issues, key=lambda x: x.duration, reverse=True) |
| 366 | |
| 367 | def _categorize_test(self, test_name: str) -> str: |
| 368 | """Categorize test based on its name and path.""" |
| 369 | if "gui" in test_name.lower(): |
| 370 | return "gui" |
| 371 | elif "headless" in test_name.lower(): |
| 372 | return "headless" |
| 373 | elif "integration" in test_name.lower(): |
| 374 | return "integration" |
| 375 | else: |
| 376 | return "unit" |
| 377 | |
| 378 | def _identify_bottleneck_type(self, test_name: str, duration: float) -> str: |
| 379 | """Identify the likely bottleneck type based on test characteristics.""" |
no outgoing calls
no test coverage detected