robotcode-runner 2.6.2__py3-none-any.whl → 2.7.0__py3-none-any.whl
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/__version__.py +1 -1
- robotcode/runner/cli/discover/_models.py +2 -2
- robotcode/runner/cli/discover/discover.py +15 -3
- robotcode/runner/cli/robot.py +2 -0
- {robotcode_runner-2.6.2.dist-info → robotcode_runner-2.7.0.dist-info}/METADATA +5 -5
- {robotcode_runner-2.6.2.dist-info → robotcode_runner-2.7.0.dist-info}/RECORD +8 -8
- {robotcode_runner-2.6.2.dist-info → robotcode_runner-2.7.0.dist-info}/WHEEL +1 -1
- {robotcode_runner-2.6.2.dist-info → robotcode_runner-2.7.0.dist-info}/entry_points.txt +0 -0
robotcode/runner/__version__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "2.
|
|
1
|
+
__version__ = "2.7.0"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"""Data models emitted by `robotcode discover`.
|
|
2
2
|
|
|
3
3
|
All models inherit from `CamelSnakeMixin` so the JSON output uses
|
|
4
|
-
camelCase keys (`fullName`, `relSource`, `
|
|
4
|
+
camelCase keys (`fullName`, `relSource`, `supportsParseInclude`, …)
|
|
5
5
|
consistent with the `results` family. Editor integrations and CI
|
|
6
6
|
recipes rely on that shape.
|
|
7
7
|
"""
|
|
@@ -23,7 +23,6 @@ class TestItem(CamelSnakeMixin):
|
|
|
23
23
|
uri: Optional[DocumentUri] = None
|
|
24
24
|
rel_source: Optional[str] = None
|
|
25
25
|
source: Optional[str] = None
|
|
26
|
-
needs_parse_include: bool = False
|
|
27
26
|
children: Optional[List["TestItem"]] = None
|
|
28
27
|
description: Optional[str] = None
|
|
29
28
|
range: Optional[Range] = None
|
|
@@ -37,6 +36,7 @@ class ResultItem(CamelSnakeMixin):
|
|
|
37
36
|
items: List[TestItem]
|
|
38
37
|
diagnostics: Optional[Dict[str, List[Diagnostic]]] = None
|
|
39
38
|
filters_applied: Optional[Dict[str, str]] = None
|
|
39
|
+
supports_parse_include: bool = False
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
@dataclass
|
|
@@ -54,6 +54,12 @@ from ..robot import ROBOT_OPTIONS, ROBOT_VERSION_OPTIONS, RobotFrameworkEx, hand
|
|
|
54
54
|
from . import _render
|
|
55
55
|
from ._models import Info, ResultItem, Statistics, TagsResult, TestItem
|
|
56
56
|
|
|
57
|
+
# Robot Framework 6.1 introduced `--parseinclude`. Before that, the `--suite`
|
|
58
|
+
# option implicitly restricted which files were parsed, so an explicit include
|
|
59
|
+
# was neither available nor needed. Editors use this to decide whether to pass
|
|
60
|
+
# `-I` when running a subset of tests.
|
|
61
|
+
SUPPORTS_PARSE_INCLUDE = RF_VERSION >= (6, 1)
|
|
62
|
+
|
|
57
63
|
DISCOVER_SEARCH_OPTIONS = [
|
|
58
64
|
click.option(
|
|
59
65
|
"--search",
|
|
@@ -252,7 +258,6 @@ class Collector(SuiteVisitor):
|
|
|
252
258
|
uri=str(Uri.from_path(absolute_path)),
|
|
253
259
|
source=str(absolute_path),
|
|
254
260
|
rel_source=get_rel_source(absolute_path),
|
|
255
|
-
needs_parse_include=RF_VERSION >= (6, 1),
|
|
256
261
|
)
|
|
257
262
|
self._current = self.all
|
|
258
263
|
self.suites: List[TestItem] = []
|
|
@@ -647,7 +652,10 @@ def all(
|
|
|
647
652
|
else:
|
|
648
653
|
app.print_data(
|
|
649
654
|
ResultItem(
|
|
650
|
-
[collector.all],
|
|
655
|
+
[collector.all],
|
|
656
|
+
diagnostics,
|
|
657
|
+
filters_applied=_filters_applied(search_substring, search_regex),
|
|
658
|
+
supports_parse_include=SUPPORTS_PARSE_INCLUDE,
|
|
651
659
|
),
|
|
652
660
|
remove_defaults=True,
|
|
653
661
|
)
|
|
@@ -694,6 +702,7 @@ def _test_or_tasks(
|
|
|
694
702
|
filtered,
|
|
695
703
|
diagnostics,
|
|
696
704
|
filters_applied=_filters_applied(search_substring, search_regex),
|
|
705
|
+
supports_parse_include=SUPPORTS_PARSE_INCLUDE,
|
|
697
706
|
),
|
|
698
707
|
remove_defaults=True,
|
|
699
708
|
)
|
|
@@ -881,7 +890,10 @@ def suites(
|
|
|
881
890
|
else:
|
|
882
891
|
app.print_data(
|
|
883
892
|
ResultItem(
|
|
884
|
-
collector.suites,
|
|
893
|
+
collector.suites,
|
|
894
|
+
diagnostics,
|
|
895
|
+
filters_applied=_filters_applied(search_substring, search_regex),
|
|
896
|
+
supports_parse_include=SUPPORTS_PARSE_INCLUDE,
|
|
885
897
|
),
|
|
886
898
|
remove_defaults=True,
|
|
887
899
|
)
|
robotcode/runner/cli/robot.py
CHANGED
|
@@ -15,6 +15,7 @@ from robotcode.core.utils.path import path_is_relative_to
|
|
|
15
15
|
from robotcode.plugin import Application, pass_application
|
|
16
16
|
from robotcode.plugin.click_helper.aliases import AliasedCommand
|
|
17
17
|
from robotcode.plugin.click_helper.types import add_options
|
|
18
|
+
from robotcode.plugin.click_helper.wrappable import wrappable
|
|
18
19
|
from robotcode.robot.config.loader import load_robot_config_from_path
|
|
19
20
|
from robotcode.robot.config.model import RobotBaseProfile
|
|
20
21
|
from robotcode.robot.config.utils import get_config_files
|
|
@@ -293,6 +294,7 @@ def handle_robot_options(
|
|
|
293
294
|
return root_folder, profile, cmd_options
|
|
294
295
|
|
|
295
296
|
|
|
297
|
+
@wrappable
|
|
296
298
|
@click.command(
|
|
297
299
|
cls=AliasedCommand,
|
|
298
300
|
aliases=["run"],
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: robotcode-runner
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.7.0
|
|
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
|
|
@@ -25,10 +25,10 @@ Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
|
25
25
|
Classifier: Topic :: Utilities
|
|
26
26
|
Classifier: Typing :: Typed
|
|
27
27
|
Requires-Python: >=3.10
|
|
28
|
-
Requires-Dist: robotcode-modifiers==2.
|
|
29
|
-
Requires-Dist: robotcode-plugin==2.
|
|
30
|
-
Requires-Dist: robotcode-robot==2.
|
|
31
|
-
Requires-Dist: robotcode==2.
|
|
28
|
+
Requires-Dist: robotcode-modifiers==2.7.0
|
|
29
|
+
Requires-Dist: robotcode-plugin==2.7.0
|
|
30
|
+
Requires-Dist: robotcode-robot==2.7.0
|
|
31
|
+
Requires-Dist: robotcode==2.7.0
|
|
32
32
|
Requires-Dist: robotframework>=5.0.0
|
|
33
33
|
Provides-Extra: html
|
|
34
34
|
Requires-Dist: html-to-markdown>=2.0; extra == 'html'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
robotcode/runner/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
robotcode/runner/__version__.py,sha256=
|
|
2
|
+
robotcode/runner/__version__.py,sha256=EtKWW0Hnl5oWglRNH0HZigvcDT2FEs58ek8buJdwW1E,22
|
|
3
3
|
robotcode/runner/hooks.py,sha256=MSqEHc3wQIBgCXf9U9B0sA_zE8vbiTdoAlfaWz_3uIo,270
|
|
4
4
|
robotcode/runner/py.typed,sha256=bWew9mHgMy8LqMu7RuqQXFXLBxh2CRx0dUbSx-3wE48,27
|
|
5
5
|
robotcode/runner/cli/__init__.py,sha256=ozQtrMXxWIlJz3QKZhaGEIDjSCL0TPtF1XeP8WL8HrE,240
|
|
@@ -7,18 +7,18 @@ robotcode/runner/cli/_markdown.py,sha256=6zXGB3wYngaKg5tu-GuwCuZvvRKSxfl97jUxjRS
|
|
|
7
7
|
robotcode/runner/cli/_search.py,sha256=r6Uh-0ftc8WnkNOfkIgNBgJ2tSRWzgO0M_bM6cPFnxY,14421
|
|
8
8
|
robotcode/runner/cli/libdoc.py,sha256=VOKb0Xpct9mGgZkCdUng13o3ZpvxnPg_LqWNP13BEJU,3468
|
|
9
9
|
robotcode/runner/cli/rebot.py,sha256=LhMvkn92PQBQaniA1vRlu9J_XJ9N_wj95v48sdIvlG4,3943
|
|
10
|
-
robotcode/runner/cli/robot.py,sha256=
|
|
10
|
+
robotcode/runner/cli/robot.py,sha256=syHOpewghJg0EjdYe4hZCfPCvSMa38dA2pa4qeIplZc,11868
|
|
11
11
|
robotcode/runner/cli/testdoc.py,sha256=qc11KKwgGVXUydqsPS1M6x-j69wrtkFACeZEBeGXZBk,3479
|
|
12
12
|
robotcode/runner/cli/discover/__init__.py,sha256=CRFSvVDlOX1avV3kx-d2QUOugDvgKPy8RBApsAUq15s,55
|
|
13
|
-
robotcode/runner/cli/discover/_models.py,sha256=
|
|
13
|
+
robotcode/runner/cli/discover/_models.py,sha256=YsJ9zn5KZH9TmsocAS3IeioU8-K3KqEl63TQa4HVAuc,1768
|
|
14
14
|
robotcode/runner/cli/discover/_render.py,sha256=C1tee_gitlS4JsF1NVIuYczzqnTTKXOnTiEAJfGtCW0,16523
|
|
15
|
-
robotcode/runner/cli/discover/discover.py,sha256=
|
|
15
|
+
robotcode/runner/cli/discover/discover.py,sha256=q-XAMG1pz4emyKNZOe66bIWU6awa5PxUQPBI2KpcSl0,38673
|
|
16
16
|
robotcode/runner/cli/results/__init__.py,sha256=aEyNen0WWvq3kF_VTRLz99_B5CMChM0aelpzWKW6Rac,52
|
|
17
17
|
robotcode/runner/cli/results/_html.py,sha256=MD_6RZMeYNORFOINB8RJA8UhKEgXl6pldCToF51Y3qo,19422
|
|
18
18
|
robotcode/runner/cli/results/_models.py,sha256=1zo-LoR-_lLIrnEwZh61qAryCgirQWkJNcZ5yzognKo,7271
|
|
19
19
|
robotcode/runner/cli/results/_render.py,sha256=IVQiD_plufMyEU3WIDntGx_aqTiFc-Pg10jtS0dfXFk,32104
|
|
20
20
|
robotcode/runner/cli/results/results.py,sha256=Vofh1RAYxM_uTJAjAyjYB7vJFROOHD6S9KkQzeGyzHI,67126
|
|
21
|
-
robotcode_runner-2.
|
|
22
|
-
robotcode_runner-2.
|
|
23
|
-
robotcode_runner-2.
|
|
24
|
-
robotcode_runner-2.
|
|
21
|
+
robotcode_runner-2.7.0.dist-info/METADATA,sha256=_PxtY6zq5PTEwHaNQN9rh84nY0SG1Jq_rfrdNf40bW8,2968
|
|
22
|
+
robotcode_runner-2.7.0.dist-info/WHEEL,sha256=lCkmxWfQsSc9CfIClYeavTdQeEX2toPqufh9gI35EQA,87
|
|
23
|
+
robotcode_runner-2.7.0.dist-info/entry_points.txt,sha256=igwjQYHlUfgCN-SohGVeQOnxOtqUzd2Jq94Ie8Se1Aw,44
|
|
24
|
+
robotcode_runner-2.7.0.dist-info/RECORD,,
|
|
File without changes
|