Print a summary of current progress.
(project_dir: Path)
| 233 | |
| 234 | |
| 235 | def print_progress_summary(project_dir: Path) -> None: |
| 236 | """Print a summary of current progress.""" |
| 237 | passing, in_progress, total = count_passing_tests(project_dir) |
| 238 | |
| 239 | if total > 0: |
| 240 | percentage = (passing / total) * 100 |
| 241 | status_parts = [f"{passing}/{total} tests passing ({percentage:.1f}%)"] |
| 242 | if in_progress > 0: |
| 243 | status_parts.append(f"{in_progress} in progress") |
| 244 | print(f"\nProgress: {', '.join(status_parts)}") |
| 245 | send_progress_webhook(passing, total, project_dir) |
| 246 | else: |
| 247 | print("\nProgress: No features in database yet") |
no test coverage detected