(workers: list[WorkerThread])
| 454 | |
| 455 | |
| 456 | def get_running(workers: list[WorkerThread]) -> str | None: |
| 457 | running: list[str] = [] |
| 458 | for worker in workers: |
| 459 | test_name = worker.test_name |
| 460 | if test_name == _NOT_RUNNING: |
| 461 | continue |
| 462 | dt = time.monotonic() - worker.start_time |
| 463 | if dt >= PROGRESS_MIN_TIME: |
| 464 | text = f'{test_name} ({format_duration(dt)})' |
| 465 | running.append(text) |
| 466 | if not running: |
| 467 | return None |
| 468 | return f"running ({len(running)}): {', '.join(running)}" |
| 469 | |
| 470 | |
| 471 | class RunWorkers: |
no test coverage detected
searching dependent graphs…