orionis 0.432.0__py3-none-any.whl → 0.434.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.
- orionis/app.py +17 -0
- orionis/metadata/framework.py +1 -1
- orionis/support/entities/base.py +18 -37
- orionis/support/facades/console.py +3 -9
- orionis/support/facades/dumper.py +3 -9
- orionis/support/facades/logger.py +3 -9
- orionis/support/facades/path_resolver.py +3 -10
- orionis/support/facades/progress_bar.py +3 -10
- orionis/support/facades/testing.py +4 -10
- orionis/support/facades/workers.py +4 -9
- orionis/support/formatter/exceptions/contracts/parser.py +10 -7
- orionis/support/formatter/exceptions/parser.py +28 -26
- orionis/support/formatter/serializer.py +12 -5
- orionis/support/patterns/singleton/meta.py +17 -21
- orionis/support/standard/contracts/std.py +25 -24
- orionis/support/standard/exceptions/value.py +2 -2
- orionis/support/standard/std.py +26 -24
- orionis/support/wrapper/dot_dict.py +16 -51
- orionis/test/cases/asynchronous.py +17 -81
- orionis/test/cases/synchronous.py +17 -73
- orionis/test/contracts/dumper.py +17 -21
- orionis/test/contracts/kernel.py +5 -12
- orionis/test/contracts/logs.py +16 -21
- orionis/test/contracts/printer.py +70 -8
- orionis/test/contracts/render.py +7 -13
- orionis/test/contracts/test_result.py +58 -27
- orionis/test/contracts/unit_test.py +18 -18
- orionis/test/core/unit_test.py +162 -519
- orionis/test/entities/result.py +49 -21
- orionis/test/enums/status.py +11 -17
- orionis/test/exceptions/config.py +4 -8
- orionis/test/exceptions/failure.py +2 -18
- orionis/test/exceptions/persistence.py +4 -8
- orionis/test/exceptions/runtime.py +4 -8
- orionis/test/exceptions/value.py +5 -13
- orionis/test/kernel.py +14 -42
- orionis/test/output/dumper.py +21 -43
- orionis/test/output/printer.py +6 -146
- orionis/test/records/logs.py +57 -121
- orionis/test/validators/base_path.py +8 -6
- orionis/test/validators/execution_mode.py +2 -3
- orionis/test/validators/fail_fast.py +4 -8
- orionis/test/validators/folder_path.py +5 -7
- orionis/test/validators/module_name.py +3 -3
- orionis/test/validators/name_pattern.py +4 -9
- orionis/test/validators/pattern.py +4 -9
- orionis/test/validators/persistent.py +4 -14
- orionis/test/validators/persistent_driver.py +7 -12
- orionis/test/validators/print_result.py +4 -9
- orionis/test/validators/tags.py +6 -7
- orionis/test/validators/throw_exception.py +7 -14
- orionis/test/validators/verbosity.py +15 -5
- orionis/test/validators/web_report.py +6 -10
- orionis/test/validators/workers.py +9 -4
- orionis/test/view/render.py +9 -26
- {orionis-0.432.0.dist-info → orionis-0.434.0.dist-info}/METADATA +1 -1
- {orionis-0.432.0.dist-info → orionis-0.434.0.dist-info}/RECORD +76 -75
- tests/support/entities/mock_dataclass.py +16 -10
- tests/support/entities/test_base.py +6 -14
- tests/support/patterns/singleton/test_patterns_singleton.py +7 -8
- tests/support/standard/test_services_std.py +113 -37
- tests/support/wrapper/test_services_wrapper_docdict.py +25 -40
- tests/testing/cases/test_testing_asynchronous.py +14 -14
- tests/testing/cases/test_testing_synchronous.py +12 -14
- tests/testing/entities/test_testing_result.py +12 -51
- tests/testing/enums/test_testing_status.py +8 -13
- tests/testing/output/test_testing_dumper.py +3 -6
- tests/testing/output/test_testing_printer.py +5 -5
- tests/testing/records/test_testing_records.py +16 -26
- tests/testing/test_testing_unit.py +8 -94
- tests/testing/validators/test_testing_validators.py +55 -112
- tests/testing/view/test_render.py +4 -5
- {orionis-0.432.0.dist-info → orionis-0.434.0.dist-info}/WHEEL +0 -0
- {orionis-0.432.0.dist-info → orionis-0.434.0.dist-info}/licenses/LICENCE +0 -0
- {orionis-0.432.0.dist-info → orionis-0.434.0.dist-info}/top_level.txt +0 -0
- {orionis-0.432.0.dist-info → orionis-0.434.0.dist-info}/zip-safe +0 -0
|
@@ -22,28 +22,28 @@ class IUnitTest(ABC):
|
|
|
22
22
|
web_report: bool
|
|
23
23
|
) -> 'IUnitTest':
|
|
24
24
|
"""
|
|
25
|
-
Configure the unit test runner with the
|
|
25
|
+
Configure the unit test runner with the provided options.
|
|
26
26
|
|
|
27
27
|
Parameters
|
|
28
28
|
----------
|
|
29
29
|
verbosity : int or VerbosityMode
|
|
30
|
-
|
|
30
|
+
Verbosity level for test output.
|
|
31
31
|
execution_mode : str or ExecutionMode
|
|
32
|
-
|
|
32
|
+
Execution mode for running tests.
|
|
33
33
|
max_workers : int
|
|
34
34
|
Maximum number of worker threads or processes.
|
|
35
35
|
fail_fast : bool
|
|
36
|
-
|
|
36
|
+
Whether to stop on the first test failure.
|
|
37
37
|
print_result : bool
|
|
38
|
-
|
|
38
|
+
Whether to print test results to the console.
|
|
39
39
|
throw_exception : bool
|
|
40
|
-
|
|
40
|
+
Whether to raise exceptions on test failures.
|
|
41
41
|
persistent : bool
|
|
42
|
-
|
|
43
|
-
persistent_driver : str
|
|
44
|
-
|
|
42
|
+
Whether to enable persistent storage for test results.
|
|
43
|
+
persistent_driver : str or PersistentDrivers
|
|
44
|
+
Persistent storage driver to use.
|
|
45
45
|
web_report : bool
|
|
46
|
-
|
|
46
|
+
Whether to generate a web-based test report.
|
|
47
47
|
|
|
48
48
|
Returns
|
|
49
49
|
-------
|
|
@@ -63,20 +63,20 @@ class IUnitTest(ABC):
|
|
|
63
63
|
tags: Optional[List[str]] = None
|
|
64
64
|
) -> 'IUnitTest':
|
|
65
65
|
"""
|
|
66
|
-
Discover test cases
|
|
66
|
+
Discover test cases within a specified folder.
|
|
67
67
|
|
|
68
68
|
Parameters
|
|
69
69
|
----------
|
|
70
70
|
base_path : str or Path
|
|
71
71
|
Base directory for test discovery.
|
|
72
72
|
folder_path : str
|
|
73
|
-
|
|
73
|
+
Path to the folder containing test files.
|
|
74
74
|
pattern : str
|
|
75
|
-
File pattern to match test files
|
|
75
|
+
File pattern to match test files.
|
|
76
76
|
test_name_pattern : str, optional
|
|
77
77
|
Pattern to match test function or class names.
|
|
78
78
|
tags : list of str, optional
|
|
79
|
-
|
|
79
|
+
Tags to filter discovered tests.
|
|
80
80
|
|
|
81
81
|
Returns
|
|
82
82
|
-------
|
|
@@ -93,7 +93,7 @@ class IUnitTest(ABC):
|
|
|
93
93
|
test_name_pattern: Optional[str] = None
|
|
94
94
|
) -> 'IUnitTest':
|
|
95
95
|
"""
|
|
96
|
-
Discover test cases
|
|
96
|
+
Discover test cases within a specified module.
|
|
97
97
|
|
|
98
98
|
Parameters
|
|
99
99
|
----------
|
|
@@ -117,14 +117,14 @@ class IUnitTest(ABC):
|
|
|
117
117
|
Returns
|
|
118
118
|
-------
|
|
119
119
|
dict
|
|
120
|
-
|
|
120
|
+
Results of the test execution.
|
|
121
121
|
"""
|
|
122
122
|
pass
|
|
123
123
|
|
|
124
124
|
@abstractmethod
|
|
125
125
|
def getTestNames(self) -> List[str]:
|
|
126
126
|
"""
|
|
127
|
-
|
|
127
|
+
Retrieve the list of discovered test names.
|
|
128
128
|
|
|
129
129
|
Returns
|
|
130
130
|
-------
|
|
@@ -160,7 +160,7 @@ class IUnitTest(ABC):
|
|
|
160
160
|
Returns
|
|
161
161
|
-------
|
|
162
162
|
dict
|
|
163
|
-
|
|
163
|
+
Results of the last test execution.
|
|
164
164
|
"""
|
|
165
165
|
pass
|
|
166
166
|
|