robotcode-runner 2.9.0.dev197__tar.gz → 2.9.0.dev230__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {robotcode_runner-2.9.0.dev197 → robotcode_runner-2.9.0.dev230}/.gitignore +1 -1
- {robotcode_runner-2.9.0.dev197 → robotcode_runner-2.9.0.dev230}/PKG-INFO +5 -5
- {robotcode_runner-2.9.0.dev197 → robotcode_runner-2.9.0.dev230}/pyproject.toml +4 -4
- robotcode_runner-2.9.0.dev230/src/robotcode/runner/__version__.py +1 -0
- {robotcode_runner-2.9.0.dev197 → robotcode_runner-2.9.0.dev230}/src/robotcode/runner/cli/results/results.py +34 -19
- robotcode_runner-2.9.0.dev197/src/robotcode/runner/__version__.py +0 -1
- {robotcode_runner-2.9.0.dev197 → robotcode_runner-2.9.0.dev230}/README.md +0 -0
- {robotcode_runner-2.9.0.dev197 → robotcode_runner-2.9.0.dev230}/src/robotcode/runner/__init__.py +0 -0
- {robotcode_runner-2.9.0.dev197 → robotcode_runner-2.9.0.dev230}/src/robotcode/runner/cli/__init__.py +0 -0
- {robotcode_runner-2.9.0.dev197 → robotcode_runner-2.9.0.dev230}/src/robotcode/runner/cli/_markdown.py +0 -0
- {robotcode_runner-2.9.0.dev197 → robotcode_runner-2.9.0.dev230}/src/robotcode/runner/cli/_robot_version.py +0 -0
- {robotcode_runner-2.9.0.dev197 → robotcode_runner-2.9.0.dev230}/src/robotcode/runner/cli/_search.py +0 -0
- {robotcode_runner-2.9.0.dev197 → robotcode_runner-2.9.0.dev230}/src/robotcode/runner/cli/discover/__init__.py +0 -0
- {robotcode_runner-2.9.0.dev197 → robotcode_runner-2.9.0.dev230}/src/robotcode/runner/cli/discover/_models.py +0 -0
- {robotcode_runner-2.9.0.dev197 → robotcode_runner-2.9.0.dev230}/src/robotcode/runner/cli/discover/_render.py +0 -0
- {robotcode_runner-2.9.0.dev197 → robotcode_runner-2.9.0.dev230}/src/robotcode/runner/cli/discover/discover.py +0 -0
- {robotcode_runner-2.9.0.dev197 → robotcode_runner-2.9.0.dev230}/src/robotcode/runner/cli/libdoc.py +0 -0
- {robotcode_runner-2.9.0.dev197 → robotcode_runner-2.9.0.dev230}/src/robotcode/runner/cli/rebot.py +0 -0
- {robotcode_runner-2.9.0.dev197 → robotcode_runner-2.9.0.dev230}/src/robotcode/runner/cli/results/__init__.py +0 -0
- {robotcode_runner-2.9.0.dev197 → robotcode_runner-2.9.0.dev230}/src/robotcode/runner/cli/results/_compare.py +0 -0
- {robotcode_runner-2.9.0.dev197 → robotcode_runner-2.9.0.dev230}/src/robotcode/runner/cli/results/_html.py +0 -0
- {robotcode_runner-2.9.0.dev197 → robotcode_runner-2.9.0.dev230}/src/robotcode/runner/cli/results/_models.py +0 -0
- {robotcode_runner-2.9.0.dev197 → robotcode_runner-2.9.0.dev230}/src/robotcode/runner/cli/results/_render.py +0 -0
- {robotcode_runner-2.9.0.dev197 → robotcode_runner-2.9.0.dev230}/src/robotcode/runner/cli/robot.py +0 -0
- {robotcode_runner-2.9.0.dev197 → robotcode_runner-2.9.0.dev230}/src/robotcode/runner/cli/testdoc.py +0 -0
- {robotcode_runner-2.9.0.dev197 → robotcode_runner-2.9.0.dev230}/src/robotcode/runner/hooks.py +0 -0
- {robotcode_runner-2.9.0.dev197 → robotcode_runner-2.9.0.dev230}/src/robotcode/runner/py.typed +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: robotcode-runner
|
|
3
|
-
Version: 2.9.0-dev.
|
|
3
|
+
Version: 2.9.0-dev.230
|
|
4
4
|
Summary: RobotCode runner for Robot Framework
|
|
5
5
|
Project-URL: Homepage, https://robotcode.io
|
|
6
6
|
Project-URL: Donate, https://opencollective.com/robotcode
|
|
@@ -26,10 +26,10 @@ Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
|
26
26
|
Classifier: Topic :: Utilities
|
|
27
27
|
Classifier: Typing :: Typed
|
|
28
28
|
Requires-Python: >=3.10
|
|
29
|
-
Requires-Dist: robotcode-modifiers==2.9.0-dev.
|
|
30
|
-
Requires-Dist: robotcode-plugin==2.9.0-dev.
|
|
31
|
-
Requires-Dist: robotcode-robot==2.9.0-dev.
|
|
32
|
-
Requires-Dist: robotcode==2.9.0-dev.
|
|
29
|
+
Requires-Dist: robotcode-modifiers==2.9.0-dev.230
|
|
30
|
+
Requires-Dist: robotcode-plugin==2.9.0-dev.230
|
|
31
|
+
Requires-Dist: robotcode-robot==2.9.0-dev.230
|
|
32
|
+
Requires-Dist: robotcode==2.9.0-dev.230
|
|
33
33
|
Requires-Dist: robotframework>=5.0.0
|
|
34
34
|
Provides-Extra: html
|
|
35
35
|
Requires-Dist: html-to-markdown>=3.18; extra == 'html'
|
|
@@ -30,10 +30,10 @@ classifiers = [
|
|
|
30
30
|
dynamic = ["version"]
|
|
31
31
|
dependencies = [
|
|
32
32
|
"robotframework>=5.0.0",
|
|
33
|
-
"robotcode-robot==2.9.0-dev.
|
|
34
|
-
"robotcode-modifiers==2.9.0-dev.
|
|
35
|
-
"robotcode-plugin==2.9.0-dev.
|
|
36
|
-
"robotcode==2.9.0-dev.
|
|
33
|
+
"robotcode-robot==2.9.0-dev.230",
|
|
34
|
+
"robotcode-modifiers==2.9.0-dev.230",
|
|
35
|
+
"robotcode-plugin==2.9.0-dev.230",
|
|
36
|
+
"robotcode==2.9.0-dev.230",
|
|
37
37
|
]
|
|
38
38
|
|
|
39
39
|
[project.optional-dependencies]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "2.9.0-dev.230"
|
|
@@ -330,6 +330,13 @@ def results() -> None:
|
|
|
330
330
|
show_default=True,
|
|
331
331
|
help="Include the list of failed tests (with messages) below the counts table.",
|
|
332
332
|
)
|
|
333
|
+
@click.option(
|
|
334
|
+
"--message-chars",
|
|
335
|
+
type=click.IntRange(min=0),
|
|
336
|
+
default=120,
|
|
337
|
+
show_default=True,
|
|
338
|
+
help="Shorten each message to the whole lines that fit into N characters (0 = no shortening).",
|
|
339
|
+
)
|
|
333
340
|
@FULL_PATHS_OPTION
|
|
334
341
|
@pass_application
|
|
335
342
|
def summary(
|
|
@@ -347,6 +354,7 @@ def summary(
|
|
|
347
354
|
search_regex: Optional[str],
|
|
348
355
|
output_file: Optional[Path],
|
|
349
356
|
show_failed: bool,
|
|
357
|
+
message_chars: int,
|
|
350
358
|
full_paths: bool,
|
|
351
359
|
) -> None:
|
|
352
360
|
"""\
|
|
@@ -401,7 +409,7 @@ def summary(
|
|
|
401
409
|
exclude_by_test_metadata=exclude_by_test_metadata,
|
|
402
410
|
)
|
|
403
411
|
counts = _collect_counts(execution.suite)
|
|
404
|
-
failed = _collect_failures(execution.suite) if show_failed else None
|
|
412
|
+
failed = _collect_failures(execution.suite, message_chars) if show_failed else None
|
|
405
413
|
exec_msg_counts = _count_execution_messages(execution_messages)
|
|
406
414
|
msg_counts = _count_all_messages(execution.suite, execution_messages)
|
|
407
415
|
|
|
@@ -453,7 +461,7 @@ def summary(
|
|
|
453
461
|
type=click.IntRange(min=0),
|
|
454
462
|
default=120,
|
|
455
463
|
show_default=True,
|
|
456
|
-
help="
|
|
464
|
+
help="Shorten each message to the whole lines that fit into N characters (0 = no shortening).",
|
|
457
465
|
)
|
|
458
466
|
@FULL_PATHS_OPTION
|
|
459
467
|
@click.option(
|
|
@@ -531,8 +539,8 @@ def show(
|
|
|
531
539
|
"""\
|
|
532
540
|
List individual tests with status, source and failure message.
|
|
533
541
|
|
|
534
|
-
One
|
|
535
|
-
|
|
542
|
+
One entry per test: status badge, full name, `(path:line)` link, and
|
|
543
|
+
any failure/skip message, cut to `--message-chars`.
|
|
536
544
|
|
|
537
545
|
\b
|
|
538
546
|
Examples:
|
|
@@ -1147,7 +1155,7 @@ def _diff_exit_code(data: DiffResult, mask: DiffExitCode) -> DiffExitCode:
|
|
|
1147
1155
|
type=click.IntRange(min=0),
|
|
1148
1156
|
default=120,
|
|
1149
1157
|
show_default=True,
|
|
1150
|
-
help="
|
|
1158
|
+
help="Shorten each message to the whole lines that fit into N characters (0 = no shortening).",
|
|
1151
1159
|
)
|
|
1152
1160
|
@click.option(
|
|
1153
1161
|
"--only",
|
|
@@ -1357,12 +1365,24 @@ def _make_diff_change(
|
|
|
1357
1365
|
|
|
1358
1366
|
|
|
1359
1367
|
def _truncate(text: Optional[str], limit: int) -> Optional[str]:
|
|
1368
|
+
"""`text` with as many whole lines as fit into `limit` characters, line breaks counted, and a line that counts
|
|
1369
|
+
the lines left out; a first line longer than `limit` is cut. With a `limit` of 0, `text` as it is."""
|
|
1360
1370
|
if not text:
|
|
1361
1371
|
return None
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1372
|
+
if not limit or len(text) <= limit:
|
|
1373
|
+
return text
|
|
1374
|
+
lines = text.splitlines()
|
|
1375
|
+
shown = [lines[0]] if len(lines[0]) <= limit else [lines[0][:limit].rstrip() + "..."]
|
|
1376
|
+
size = len(lines[0])
|
|
1377
|
+
for line in lines[1:]:
|
|
1378
|
+
size += 1 + len(line)
|
|
1379
|
+
if size > limit:
|
|
1380
|
+
break
|
|
1381
|
+
shown.append(line)
|
|
1382
|
+
left = len(lines) - len(shown)
|
|
1383
|
+
if left:
|
|
1384
|
+
shown.append(f"... ({left} more line{'' if left == 1 else 's'})")
|
|
1385
|
+
return "\n".join(shown)
|
|
1366
1386
|
|
|
1367
1387
|
|
|
1368
1388
|
_COMPARE_VIEWS = ("tests", "failures", "elapsed", "messages", "environment")
|
|
@@ -1456,7 +1476,7 @@ def _unique_lower(values: Iterable[str]) -> List[str]:
|
|
|
1456
1476
|
type=click.IntRange(min=0),
|
|
1457
1477
|
default=120,
|
|
1458
1478
|
show_default=True,
|
|
1459
|
-
help="
|
|
1479
|
+
help="Shorten messages and metadata values to the whole lines that fit into N characters (0 = no shortening).",
|
|
1460
1480
|
)
|
|
1461
1481
|
@pass_application
|
|
1462
1482
|
def compare(
|
|
@@ -2288,13 +2308,8 @@ def _make_file_info(path: Path) -> ResultFileInfo:
|
|
|
2288
2308
|
|
|
2289
2309
|
def _make_test_item(test: TestCase, *, message_chars: int) -> TestResultItem:
|
|
2290
2310
|
msg = test.message or ""
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
full_msg: Optional[str] = None
|
|
2294
|
-
if message_chars and len(first_line) > message_chars:
|
|
2295
|
-
truncated_msg = first_line[:message_chars]
|
|
2296
|
-
if msg and (truncated_msg != msg):
|
|
2297
|
-
full_msg = msg
|
|
2311
|
+
truncated_msg = _truncate(msg, message_chars) or ""
|
|
2312
|
+
full_msg = msg if truncated_msg != msg else None
|
|
2298
2313
|
|
|
2299
2314
|
full_name = _get_full_name(test)
|
|
2300
2315
|
parent_name = _get_full_name(test.parent) if test.parent else ""
|
|
@@ -2317,9 +2332,9 @@ def _make_test_item(test: TestCase, *, message_chars: int) -> TestResultItem:
|
|
|
2317
2332
|
)
|
|
2318
2333
|
|
|
2319
2334
|
|
|
2320
|
-
def _collect_failures(suite: TestSuite) -> List[TestResultItem]:
|
|
2335
|
+
def _collect_failures(suite: TestSuite, message_chars: int) -> List[TestResultItem]:
|
|
2321
2336
|
"""Return failed tests with messages from a (filtered) suite tree."""
|
|
2322
|
-
return [_make_test_item(t, message_chars=
|
|
2337
|
+
return [_make_test_item(t, message_chars=message_chars) for t in _iter_all_tests(suite) if t.status == "FAIL"]
|
|
2323
2338
|
|
|
2324
2339
|
|
|
2325
2340
|
class _LoggedMessages(ResultVisitor):
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "2.9.0-dev.197"
|
|
File without changes
|
{robotcode_runner-2.9.0.dev197 → robotcode_runner-2.9.0.dev230}/src/robotcode/runner/__init__.py
RENAMED
|
File without changes
|
{robotcode_runner-2.9.0.dev197 → robotcode_runner-2.9.0.dev230}/src/robotcode/runner/cli/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{robotcode_runner-2.9.0.dev197 → robotcode_runner-2.9.0.dev230}/src/robotcode/runner/cli/_search.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{robotcode_runner-2.9.0.dev197 → robotcode_runner-2.9.0.dev230}/src/robotcode/runner/cli/libdoc.py
RENAMED
|
File without changes
|
{robotcode_runner-2.9.0.dev197 → robotcode_runner-2.9.0.dev230}/src/robotcode/runner/cli/rebot.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{robotcode_runner-2.9.0.dev197 → robotcode_runner-2.9.0.dev230}/src/robotcode/runner/cli/robot.py
RENAMED
|
File without changes
|
{robotcode_runner-2.9.0.dev197 → robotcode_runner-2.9.0.dev230}/src/robotcode/runner/cli/testdoc.py
RENAMED
|
File without changes
|
{robotcode_runner-2.9.0.dev197 → robotcode_runner-2.9.0.dev230}/src/robotcode/runner/hooks.py
RENAMED
|
File without changes
|
{robotcode_runner-2.9.0.dev197 → robotcode_runner-2.9.0.dev230}/src/robotcode/runner/py.typed
RENAMED
|
File without changes
|