Skip to content

Commit 15ef139

Browse files
committed
build: add libxkbcommon0
1 parent 48cb64c commit 15ef139

File tree

1 file changed

+19
-8
lines changed
  • packages/runner/src/robotcode/runner/cli/discover

1 file changed

+19
-8
lines changed

packages/runner/src/robotcode/runner/cli/discover/discover.py

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -464,17 +464,28 @@ def all(
464464

465465
if collector.all.children:
466466
if app.config.output_format is None or app.config.output_format == OutputFormat.TEXT:
467-
tests_or_tasks = "Tasks" if suite.rpa else "Tests"
467+
tests_or_tasks = "Task" if suite.rpa else "Test"
468468

469469
def print(item: TestItem, indent: int = 0) -> Iterable[str]:
470-
yield (
471-
f"{' ' * indent}"
472-
f"{item.type.capitalize() if item.type == 'suite' else tests_or_tasks.capitalize() }: "
473-
f"{item.name}{os.linesep}"
470+
type = click.style(
471+
item.type.capitalize() if item.type == "suite" else tests_or_tasks.capitalize(), fg="green"
474472
)
475-
if item.children:
476-
for child in item.children:
477-
yield from print(child, indent + 2)
473+
474+
if item.type == "test":
475+
yield f" {type}: {item.longname}{os.linesep}"
476+
else:
477+
yield f"{type}: {item.longname}{os.linesep}"
478+
479+
for child in item.children or []:
480+
yield from print(child, indent + 2)
481+
482+
# type = click.style(
483+
# item.type.capitalize() if item.type == "suite" else tests_or_tasks.capitalize(), fg="green"
484+
# )
485+
# yield (f"{' ' * indent}{type}: {item.name}{os.linesep}")
486+
# if item.children:
487+
# for child in item.children:
488+
# yield from print(child, indent + 2)
478489

479490
if indent == 0:
480491
yield os.linesep

0 commit comments

Comments
 (0)