Categorize test based on its path and name.
(self, test_name: str)
| 223 | ) |
| 224 | |
| 225 | def categorize_test(self, test_name: str) -> str: |
| 226 | """Categorize test based on its path and name.""" |
| 227 | if "gui" in test_name.lower(): |
| 228 | return "gui" |
| 229 | elif "headless" in test_name.lower(): |
| 230 | return "headless" |
| 231 | elif "integration" in test_name.lower(): |
| 232 | return "integration" |
| 233 | else: |
| 234 | return "unit" |
| 235 | |
| 236 | def analyze_performance(self, results: List[TestResult]) -> Dict[str, float]: |
| 237 | """Analyze test performance and identify bottlenecks.""" |