Skip to content

Commit 9b54583

Browse files
committed
fix(test-execution): improve progress tooltip
1 parent 808542f commit 9b54583

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

testgen/commands/run_test_execution.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def run_test_execution(test_suite_id: str | UUID, username: str | None = None, r
9595
test_run.set_progress(
9696
"validation",
9797
"Warning" if invalid_count else "Completed",
98-
error=f"{invalid_count} test{'s' if invalid_count > 1 else ''} had errors" if invalid_count else None,
98+
error=f"{invalid_count} test{'s' if invalid_count > 1 else ''} had errors. See details in results." if invalid_count else None,
9999
)
100100

101101
if valid_test_defs:
@@ -118,6 +118,7 @@ def run_test_execution(test_suite_id: str | UUID, username: str | None = None, r
118118
if (run_test_defs := [td for td in valid_test_defs if td.run_type == run_type]):
119119
run_functions[run_type](run_test_defs)
120120
else:
121+
test_run.set_progress(run_type, "Completed")
121122
LOG.info(f"No {run_type} tests to run")
122123
else:
123124
LOG.info("No valid tests to run")
@@ -174,7 +175,7 @@ def update_test_progress(progress: ThreadedProgress) -> None:
174175
run_type,
175176
"Running",
176177
detail=f"{progress['processed']} of {progress['total']}",
177-
error=f"{progress['errors']} test{'s' if progress['errors'] > 1 else ''} had errors"
178+
error=f"{progress['errors']} test{'s' if progress['errors'] > 1 else ''} had errors. See details in results."
178179
if progress["errors"]
179180
else None,
180181
)
@@ -299,7 +300,7 @@ def update_single_progress(progress: ThreadedProgress) -> None:
299300
test_run.set_progress(
300301
"CAT",
301302
"Warning" if error_count else "Completed",
302-
error=f"{error_count} test{'s' if error_count > 1 else ''} had errors"
303+
error=f"{error_count} test{'s' if error_count > 1 else ''} had errors. See details in results."
303304
if error_count
304305
else None,
305306
)

0 commit comments

Comments
 (0)