Show a test failure clearly.
(test_name, error_text)
| 128 | f'[red]{failed} failed[/red] / {total} total') |
| 129 | |
| 130 | def show_tdd_failure(test_name, error_text): |
| 131 | """Show a test failure clearly.""" |
| 132 | content = Text() |
| 133 | content.append(f'{test_name}\n', style='bold red') |
| 134 | content.append(error_text[:400], style='red') |
| 135 | console.print(Panel(content, title='Test Failure', |
| 136 | border_style='red', box=box.ROUNDED)) |
| 137 | |
| 138 | def show_tdd_complete(passed, total, iterations): |
| 139 | """Show TDD completion summary.""" |