robotcode-runner 0.50.0__tar.gz → 0.52.0__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-0.50.0 → robotcode_runner-0.52.0}/PKG-INFO +4 -4
- {robotcode_runner-0.50.0 → robotcode_runner-0.52.0}/pyproject.toml +3 -3
- robotcode_runner-0.52.0/src/robotcode/runner/__version__.py +1 -0
- {robotcode_runner-0.50.0 → robotcode_runner-0.52.0}/src/robotcode/runner/cli/discover/discover.py +51 -9
- robotcode_runner-0.50.0/src/robotcode/runner/__version__.py +0 -1
- {robotcode_runner-0.50.0 → robotcode_runner-0.52.0}/.gitignore +0 -0
- {robotcode_runner-0.50.0 → robotcode_runner-0.52.0}/LICENSE.txt +0 -0
- {robotcode_runner-0.50.0 → robotcode_runner-0.52.0}/README.md +0 -0
- {robotcode_runner-0.50.0 → robotcode_runner-0.52.0}/src/robotcode/runner/__init__.py +0 -0
- {robotcode_runner-0.50.0 → robotcode_runner-0.52.0}/src/robotcode/runner/cli/__init__.py +0 -0
- {robotcode_runner-0.50.0 → robotcode_runner-0.52.0}/src/robotcode/runner/cli/discover/__init__.py +0 -0
- {robotcode_runner-0.50.0 → robotcode_runner-0.52.0}/src/robotcode/runner/cli/libdoc.py +0 -0
- {robotcode_runner-0.50.0 → robotcode_runner-0.52.0}/src/robotcode/runner/cli/rebot.py +0 -0
- {robotcode_runner-0.50.0 → robotcode_runner-0.52.0}/src/robotcode/runner/cli/robot.py +0 -0
- {robotcode_runner-0.50.0 → robotcode_runner-0.52.0}/src/robotcode/runner/cli/testdoc.py +0 -0
- {robotcode_runner-0.50.0 → robotcode_runner-0.52.0}/src/robotcode/runner/hooks.py +0 -0
- {robotcode_runner-0.50.0 → robotcode_runner-0.52.0}/src/robotcode/runner/py.typed +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: robotcode-runner
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.52.0
|
|
4
4
|
Summary: RobotCode runner plugin for Robot Framework
|
|
5
5
|
Project-URL: Homepage, https://robotcode.io
|
|
6
6
|
Project-URL: Donate, https://github.com/sponsors/d-biehl
|
|
@@ -25,9 +25,9 @@ Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
|
25
25
|
Classifier: Topic :: Utilities
|
|
26
26
|
Classifier: Typing :: Typed
|
|
27
27
|
Requires-Python: >=3.8
|
|
28
|
-
Requires-Dist: robotcode-modifiers==0.
|
|
29
|
-
Requires-Dist: robotcode-robot==0.
|
|
30
|
-
Requires-Dist: robotcode==0.
|
|
28
|
+
Requires-Dist: robotcode-modifiers==0.52.0
|
|
29
|
+
Requires-Dist: robotcode-robot==0.52.0
|
|
30
|
+
Requires-Dist: robotcode==0.52.0
|
|
31
31
|
Requires-Dist: robotframework>=4.1.0
|
|
32
32
|
Description-Content-Type: text/markdown
|
|
33
33
|
|
|
@@ -28,9 +28,9 @@ classifiers = [
|
|
|
28
28
|
dynamic = ["version"]
|
|
29
29
|
dependencies = [
|
|
30
30
|
"robotframework>=4.1.0",
|
|
31
|
-
"robotcode-robot==0.
|
|
32
|
-
"robotcode-modifiers==0.
|
|
33
|
-
"robotcode==0.
|
|
31
|
+
"robotcode-robot==0.52.0",
|
|
32
|
+
"robotcode-modifiers==0.52.0",
|
|
33
|
+
"robotcode==0.52.0",
|
|
34
34
|
]
|
|
35
35
|
|
|
36
36
|
[project.entry-points.robotcode]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.52.0"
|
{robotcode_runner-0.50.0 → robotcode_runner-0.52.0}/src/robotcode/runner/cli/discover/discover.py
RENAMED
|
@@ -28,6 +28,7 @@ from robotcode.core.lsp.types import (
|
|
|
28
28
|
Range,
|
|
29
29
|
)
|
|
30
30
|
from robotcode.core.uri import Uri
|
|
31
|
+
from robotcode.core.utils.cli import show_hidden_arguments
|
|
31
32
|
from robotcode.plugin import Application, OutputFormat, UnknownError, pass_application
|
|
32
33
|
from robotcode.plugin.click_helper.types import add_options
|
|
33
34
|
from robotcode.robot.utils import get_robot_version
|
|
@@ -54,11 +55,11 @@ def _patch() -> None:
|
|
|
54
55
|
|
|
55
56
|
if get_robot_version() <= (6, 1):
|
|
56
57
|
if get_robot_version() > (5, 0) and get_robot_version() < (6, 0) or get_robot_version() < (5, 0):
|
|
57
|
-
from robot.running.builder.testsettings import (
|
|
58
|
+
from robot.running.builder.testsettings import ( # pyright: ignore[reportMissingImports]
|
|
58
59
|
TestDefaults,
|
|
59
60
|
)
|
|
60
61
|
else:
|
|
61
|
-
from robot.running.builder.settings import (
|
|
62
|
+
from robot.running.builder.settings import ( # pyright: ignore[reportMissingImports]
|
|
62
63
|
Defaults as TestDefaults,
|
|
63
64
|
)
|
|
64
65
|
|
|
@@ -110,7 +111,7 @@ def _patch() -> None:
|
|
|
110
111
|
|
|
111
112
|
elif get_robot_version() >= (6, 1):
|
|
112
113
|
from robot.parsing.suitestructure import SuiteDirectory, SuiteFile
|
|
113
|
-
from robot.running.builder.settings import (
|
|
114
|
+
from robot.running.builder.settings import ( # pyright: ignore[reportMissingImports]
|
|
114
115
|
TestDefaults,
|
|
115
116
|
)
|
|
116
117
|
|
|
@@ -335,7 +336,7 @@ class Collector(SuiteVisitor):
|
|
|
335
336
|
"--read-from-stdin",
|
|
336
337
|
is_flag=True,
|
|
337
338
|
help="Read file contents from stdin. This is an internal option.",
|
|
338
|
-
hidden=
|
|
339
|
+
hidden=show_hidden_arguments(),
|
|
339
340
|
)
|
|
340
341
|
@pass_application
|
|
341
342
|
def discover(app: Application, read_from_stdin: bool) -> None:
|
|
@@ -415,6 +416,7 @@ def build_diagnostics(messages: List[Message]) -> Dict[str, List[Diagnostic]]:
|
|
|
415
416
|
|
|
416
417
|
def handle_options(
|
|
417
418
|
app: Application,
|
|
419
|
+
diagnostics: bool,
|
|
418
420
|
by_longname: Tuple[str, ...],
|
|
419
421
|
exclude_by_longname: Tuple[str, ...],
|
|
420
422
|
robot_options_and_args: Tuple[str, ...],
|
|
@@ -439,7 +441,10 @@ def handle_options(
|
|
|
439
441
|
|
|
440
442
|
settings = RobotSettings(options)
|
|
441
443
|
|
|
442
|
-
|
|
444
|
+
if diagnostics:
|
|
445
|
+
LOGGER.register_console_logger(**settings.console_output_config)
|
|
446
|
+
else:
|
|
447
|
+
LOGGER.unregister_console_logger()
|
|
443
448
|
|
|
444
449
|
diagnostics_logger = DiagnosticsLogger()
|
|
445
450
|
LOGGER.register_logger(diagnostics_logger)
|
|
@@ -494,6 +499,16 @@ def handle_options(
|
|
|
494
499
|
raise UnknownError("Unexpected error happened.")
|
|
495
500
|
|
|
496
501
|
|
|
502
|
+
DIAGOSTICS_OPTIONS = {
|
|
503
|
+
click.option(
|
|
504
|
+
"--diagnostics / --no-diagnostics",
|
|
505
|
+
"show_diagnostics",
|
|
506
|
+
default=True,
|
|
507
|
+
help="Display `robot` parsing errors and warning that occur during discovering.",
|
|
508
|
+
)
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
|
|
497
512
|
@discover.command(
|
|
498
513
|
context_settings={
|
|
499
514
|
"allow_extra_args": True,
|
|
@@ -502,10 +517,12 @@ def handle_options(
|
|
|
502
517
|
add_help_option=True,
|
|
503
518
|
epilog='Use "-- --help" to see `robot` help.',
|
|
504
519
|
)
|
|
520
|
+
@add_options(*DIAGOSTICS_OPTIONS)
|
|
505
521
|
@add_options(*ROBOT_OPTIONS)
|
|
506
522
|
@pass_application
|
|
507
523
|
def all(
|
|
508
524
|
app: Application,
|
|
525
|
+
show_diagnostics: bool,
|
|
509
526
|
by_longname: Tuple[str, ...],
|
|
510
527
|
exclude_by_longname: Tuple[str, ...],
|
|
511
528
|
robot_options_and_args: Tuple[str, ...],
|
|
@@ -514,15 +531,20 @@ def all(
|
|
|
514
531
|
Discover suites, tests, tasks with the selected configuration,
|
|
515
532
|
profiles, options and arguments.
|
|
516
533
|
|
|
534
|
+
You can use all known `robot` arguments to filter for example by tags or to use pre-run-modifier.
|
|
535
|
+
|
|
517
536
|
\b
|
|
518
537
|
Examples:
|
|
519
538
|
```
|
|
520
539
|
robotcode discover all
|
|
521
540
|
robotcode --profile regression discover all
|
|
541
|
+
robotcode --profile regression discover all --include regression --exclude wipANDnotready
|
|
522
542
|
```
|
|
523
543
|
"""
|
|
524
544
|
|
|
525
|
-
suite, collector, diagnostics = handle_options(
|
|
545
|
+
suite, collector, diagnostics = handle_options(
|
|
546
|
+
app, show_diagnostics, by_longname, exclude_by_longname, robot_options_and_args
|
|
547
|
+
)
|
|
526
548
|
|
|
527
549
|
if collector.all.children:
|
|
528
550
|
if app.config.output_format is None or app.config.output_format == OutputFormat.TEXT:
|
|
@@ -571,10 +593,12 @@ def all(
|
|
|
571
593
|
add_help_option=True,
|
|
572
594
|
epilog='Use "-- --help" to see `robot` help.',
|
|
573
595
|
)
|
|
596
|
+
@add_options(*DIAGOSTICS_OPTIONS)
|
|
574
597
|
@add_options(*ROBOT_OPTIONS)
|
|
575
598
|
@pass_application
|
|
576
599
|
def tests(
|
|
577
600
|
app: Application,
|
|
601
|
+
show_diagnostics: bool,
|
|
578
602
|
by_longname: Tuple[str, ...],
|
|
579
603
|
exclude_by_longname: Tuple[str, ...],
|
|
580
604
|
robot_options_and_args: Tuple[str, ...],
|
|
@@ -583,15 +607,20 @@ def tests(
|
|
|
583
607
|
Discover tests with the selected configuration, profiles, options and
|
|
584
608
|
arguments.
|
|
585
609
|
|
|
610
|
+
You can use all known `robot` arguments to filter for example by tags or to use pre-run-modifier.
|
|
611
|
+
|
|
586
612
|
\b
|
|
587
613
|
Examples:
|
|
588
614
|
```
|
|
589
615
|
robotcode discover tests
|
|
590
616
|
robotcode --profile regression discover tests
|
|
617
|
+
robotcode --profile regression discover tests --include regression --exclude wipANDnotready
|
|
591
618
|
```
|
|
592
619
|
"""
|
|
593
620
|
|
|
594
|
-
suite, collector, diagnostics = handle_options(
|
|
621
|
+
suite, collector, diagnostics = handle_options(
|
|
622
|
+
app, show_diagnostics, by_longname, exclude_by_longname, robot_options_and_args
|
|
623
|
+
)
|
|
595
624
|
|
|
596
625
|
if collector.all.children:
|
|
597
626
|
if app.config.output_format is None or app.config.output_format == OutputFormat.TEXT:
|
|
@@ -615,10 +644,12 @@ def tests(
|
|
|
615
644
|
add_help_option=True,
|
|
616
645
|
epilog='Use "-- --help" to see `robot` help.',
|
|
617
646
|
)
|
|
647
|
+
@add_options(*DIAGOSTICS_OPTIONS)
|
|
618
648
|
@add_options(*ROBOT_OPTIONS)
|
|
619
649
|
@pass_application
|
|
620
650
|
def suites(
|
|
621
651
|
app: Application,
|
|
652
|
+
show_diagnostics: bool,
|
|
622
653
|
by_longname: Tuple[str, ...],
|
|
623
654
|
exclude_by_longname: Tuple[str, ...],
|
|
624
655
|
robot_options_and_args: Tuple[str, ...],
|
|
@@ -627,15 +658,20 @@ def suites(
|
|
|
627
658
|
Discover suites with the selected configuration, profiles, options and
|
|
628
659
|
arguments.
|
|
629
660
|
|
|
661
|
+
You can use all known `robot` arguments to filter for example by tags or to use pre-run-modifier.
|
|
662
|
+
|
|
630
663
|
\b
|
|
631
664
|
Examples:
|
|
632
665
|
```
|
|
633
666
|
robotcode discover suites
|
|
634
667
|
robotcode --profile regression discover suites
|
|
668
|
+
robotcode --profile regression discover suites --include regression --exclude wipANDnotready
|
|
635
669
|
```
|
|
636
670
|
"""
|
|
637
671
|
|
|
638
|
-
suite, collector, diagnostics = handle_options(
|
|
672
|
+
suite, collector, diagnostics = handle_options(
|
|
673
|
+
app, show_diagnostics, by_longname, exclude_by_longname, robot_options_and_args
|
|
674
|
+
)
|
|
639
675
|
|
|
640
676
|
if collector.all.children:
|
|
641
677
|
if app.config.output_format is None or app.config.output_format == OutputFormat.TEXT:
|
|
@@ -670,10 +706,12 @@ class TagsResult:
|
|
|
670
706
|
default=True,
|
|
671
707
|
help="Whether or not normalized tags are shown.",
|
|
672
708
|
)
|
|
709
|
+
@add_options(*DIAGOSTICS_OPTIONS)
|
|
673
710
|
@add_options(*ROBOT_OPTIONS)
|
|
674
711
|
@pass_application
|
|
675
712
|
def tags(
|
|
676
713
|
app: Application,
|
|
714
|
+
show_diagnostics: bool,
|
|
677
715
|
normalized: bool,
|
|
678
716
|
by_longname: Tuple[str, ...],
|
|
679
717
|
exclude_by_longname: Tuple[str, ...],
|
|
@@ -683,6 +721,8 @@ def tags(
|
|
|
683
721
|
Discover tags with the selected configuration, profiles, options and
|
|
684
722
|
arguments.
|
|
685
723
|
|
|
724
|
+
You can use all known `robot` arguments to filter for example by tags or to use pre-run-modifier.
|
|
725
|
+
|
|
686
726
|
\b
|
|
687
727
|
Examples:
|
|
688
728
|
```
|
|
@@ -693,7 +733,9 @@ def tags(
|
|
|
693
733
|
```
|
|
694
734
|
"""
|
|
695
735
|
|
|
696
|
-
_suite, collector, _diagnostics = handle_options(
|
|
736
|
+
_suite, collector, _diagnostics = handle_options(
|
|
737
|
+
app, show_diagnostics, by_longname, exclude_by_longname, robot_options_and_args
|
|
738
|
+
)
|
|
697
739
|
|
|
698
740
|
if collector.all.children:
|
|
699
741
|
if app.config.output_format is None or app.config.output_format == OutputFormat.TEXT:
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.50.0"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{robotcode_runner-0.50.0 → robotcode_runner-0.52.0}/src/robotcode/runner/cli/discover/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|