orionis 0.498.0__py3-none-any.whl → 0.499.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/failure/base/handler.py +1 -1
- orionis/metadata/framework.py +1 -1
- orionis/test/kernel.py +22 -44
- {orionis-0.498.0.dist-info → orionis-0.499.0.dist-info}/METADATA +1 -1
- {orionis-0.498.0.dist-info → orionis-0.499.0.dist-info}/RECORD +9 -9
- {orionis-0.498.0.dist-info → orionis-0.499.0.dist-info}/WHEEL +0 -0
- {orionis-0.498.0.dist-info → orionis-0.499.0.dist-info}/licenses/LICENCE +0 -0
- {orionis-0.498.0.dist-info → orionis-0.499.0.dist-info}/top_level.txt +0 -0
- {orionis-0.498.0.dist-info → orionis-0.499.0.dist-info}/zip-safe +0 -0
orionis/failure/base/handler.py
CHANGED
|
@@ -65,7 +65,7 @@ class BaseExceptionHandler(IBaseExceptionHandler):
|
|
|
65
65
|
# Check if the exception type is in the list of exceptions to ignore
|
|
66
66
|
return hasattr(self, 'dont_cathc') and throwable.classtype in self.dont_cathc
|
|
67
67
|
|
|
68
|
-
def report
|
|
68
|
+
def report(self, exception: BaseException, log: ILogger) -> Any:
|
|
69
69
|
"""
|
|
70
70
|
Report or log an exception.
|
|
71
71
|
|
orionis/metadata/framework.py
CHANGED
orionis/test/kernel.py
CHANGED
|
@@ -68,9 +68,6 @@ class TestKernel(ITestKernel):
|
|
|
68
68
|
tags=config.tags # Tags to filter tests during discovery
|
|
69
69
|
)
|
|
70
70
|
|
|
71
|
-
# Resolve the console service from the application container
|
|
72
|
-
self.__console: IConsole = app.make('x-orionis.console.output.console')
|
|
73
|
-
|
|
74
71
|
# Initialize the logger service for logging command execution details
|
|
75
72
|
self.__logger: ILogger = app.make('x-orionis.services.log.log_service')
|
|
76
73
|
|
|
@@ -88,47 +85,28 @@ class TestKernel(ITestKernel):
|
|
|
88
85
|
IUnitTest
|
|
89
86
|
The unit test service instance after successful test execution. This allows
|
|
90
87
|
for potential chaining of operations or access to test results.
|
|
91
|
-
|
|
92
|
-
Raises
|
|
93
|
-
------
|
|
94
|
-
SystemExit
|
|
95
|
-
Indirectly raised through console.exitError() when test failures or
|
|
96
|
-
unexpected errors occur during test execution.
|
|
97
88
|
"""
|
|
98
89
|
|
|
99
|
-
#
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
f"Errors: {errors}, Skipped: {skipped}, "
|
|
120
|
-
f"Time: {total_time:.2f}s, Success rate: {success_rate:.2f}%"
|
|
121
|
-
)
|
|
122
|
-
|
|
123
|
-
# Report the test results to the console
|
|
124
|
-
return ouput
|
|
125
|
-
|
|
126
|
-
# Handle expected test failures with a descriptive error message
|
|
127
|
-
except OrionisTestFailureException as e:
|
|
128
|
-
self.__logger.error(f"Test execution failed: {e}")
|
|
129
|
-
self.__console.exitError(f"Test execution failed: {e}")
|
|
90
|
+
# Log the start of test execution
|
|
91
|
+
ouput = self.__unit_test.run()
|
|
92
|
+
|
|
93
|
+
# Extract report details from output
|
|
94
|
+
total_tests = ouput.get("total_tests")
|
|
95
|
+
passed = ouput.get("passed")
|
|
96
|
+
failed = ouput.get("failed")
|
|
97
|
+
errors = ouput.get("errors")
|
|
98
|
+
skipped = ouput.get("skipped")
|
|
99
|
+
total_time = ouput.get("total_time")
|
|
100
|
+
success_rate = ouput.get("success_rate")
|
|
101
|
+
timestamp = ouput.get("timestamp")
|
|
102
|
+
|
|
103
|
+
# Log test execution completion with detailed summary
|
|
104
|
+
self.__logger.info(
|
|
105
|
+
f"Test execution completed at {timestamp} | "
|
|
106
|
+
f"Total: {total_tests}, Passed: {passed}, Failed: {failed}, "
|
|
107
|
+
f"Errors: {errors}, Skipped: {skipped}, "
|
|
108
|
+
f"Time: {total_time:.2f}s, Success rate: {success_rate:.2f}%"
|
|
109
|
+
)
|
|
130
110
|
|
|
131
|
-
#
|
|
132
|
-
|
|
133
|
-
self.__logger.error(f"An unexpected error occurred while executing tests: {e}")
|
|
134
|
-
self.__console.exitError(f"An unexpected error occurred: {e}")
|
|
111
|
+
# Report the test results to the console
|
|
112
|
+
return ouput
|
|
@@ -95,7 +95,7 @@ orionis/container/validators/lifetime.py,sha256=IQ43fDNrxYHMlZH2zlYDJnlkLO_eS4U7
|
|
|
95
95
|
orionis/failure/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
96
96
|
orionis/failure/catch.py,sha256=LCr2Fy7mMwhAILx9VVb0KUZTRPg7UyE_8Ai_hJP0NMQ,3627
|
|
97
97
|
orionis/failure/base/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
98
|
-
orionis/failure/base/handler.py,sha256=
|
|
98
|
+
orionis/failure/base/handler.py,sha256=vA4u9UqKzzRXIafLTxi3beeCxPGco_0BMhazASahNqs,4464
|
|
99
99
|
orionis/failure/contracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
100
100
|
orionis/failure/contracts/catch.py,sha256=e2wM1p6VxbvAjgWm-MwoM9p2ystSsyBu8Qnt6Ehr6Vc,1179
|
|
101
101
|
orionis/failure/contracts/handler.py,sha256=1WyFx7D9h5chNnOXDQhg6o-RqNfhTHblm_xWzCDu4SM,2161
|
|
@@ -218,7 +218,7 @@ orionis/foundation/providers/scheduler_provider.py,sha256=72SoixFog9IOE9Ve9Xcfw6
|
|
|
218
218
|
orionis/foundation/providers/testing_provider.py,sha256=SrJRpdvcblx9WvX7x9Y3zc7OQfiTf7la0HAJrm2ESlE,3725
|
|
219
219
|
orionis/foundation/providers/workers_provider.py,sha256=oa_2NIDH6UxZrtuGkkoo_zEoNIMGgJ46vg5CCgAm7wI,3926
|
|
220
220
|
orionis/metadata/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
221
|
-
orionis/metadata/framework.py,sha256=
|
|
221
|
+
orionis/metadata/framework.py,sha256=w7r_buzaoWjvBu95waTLa08iamd9l0yUqhUWlL2Ik08,4109
|
|
222
222
|
orionis/metadata/package.py,sha256=k7Yriyp5aUcR-iR8SK2ec_lf0_Cyc-C7JczgXa-I67w,16039
|
|
223
223
|
orionis/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
224
224
|
orionis/services/asynchrony/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -347,7 +347,7 @@ orionis/support/standard/exceptions/value.py,sha256=rsyWFQweImaJGTJa7Id7RhPlwWJ4
|
|
|
347
347
|
orionis/support/wrapper/__init__.py,sha256=jGoWoIGYuRYqMYQKlrX7Dpcbg-AGkHoB_aM2xhu73yc,62
|
|
348
348
|
orionis/support/wrapper/dot_dict.py,sha256=T8xWwwOhBZHNeXRwE_CxvOwG9UFxsLqNmOJjV2CNIrc,7284
|
|
349
349
|
orionis/test/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
350
|
-
orionis/test/kernel.py,sha256=
|
|
350
|
+
orionis/test/kernel.py,sha256=0LiEftvk5ehjDbXUjbcfLzrtXAYfo-cU7GXWzUF5Myo,5300
|
|
351
351
|
orionis/test/cases/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
352
352
|
orionis/test/cases/asynchronous.py,sha256=3e1Y3qzIxVU7i7lbLFEVyJ89IA74JsB7famx71W-p2E,1974
|
|
353
353
|
orionis/test/cases/synchronous.py,sha256=S5jhuDEZ5I9wosrTFaCtowkD5r5HzJH6mKPOdEJcDJE,1734
|
|
@@ -394,7 +394,7 @@ orionis/test/validators/web_report.py,sha256=n9BfzOZz6aEiNTypXcwuWbFRG0OdHNSmCNu
|
|
|
394
394
|
orionis/test/validators/workers.py,sha256=rWcdRexINNEmGaO7mnc1MKUxkHKxrTsVuHgbnIfJYgc,1206
|
|
395
395
|
orionis/test/view/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
396
396
|
orionis/test/view/render.py,sha256=f-zNhtKSg9R5Njqujbg2l2amAs2-mRVESneLIkWOZjU,4082
|
|
397
|
-
orionis-0.
|
|
397
|
+
orionis-0.499.0.dist-info/licenses/LICENCE,sha256=JhC-z_9mbpUrCfPjcl3DhDA8trNDMzb57cvRSam1avc,1463
|
|
398
398
|
tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
399
399
|
tests/container/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
400
400
|
tests/container/context/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -541,8 +541,8 @@ tests/testing/validators/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZ
|
|
|
541
541
|
tests/testing/validators/test_testing_validators.py,sha256=WPo5GxTP6xE-Dw3X1vZoqOMpb6HhokjNSbgDsDRDvy4,16588
|
|
542
542
|
tests/testing/view/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
543
543
|
tests/testing/view/test_render.py,sha256=tnnMBwS0iKUIbogLvu-7Rii50G6Koddp3XT4wgdFEYM,1050
|
|
544
|
-
orionis-0.
|
|
545
|
-
orionis-0.
|
|
546
|
-
orionis-0.
|
|
547
|
-
orionis-0.
|
|
548
|
-
orionis-0.
|
|
544
|
+
orionis-0.499.0.dist-info/METADATA,sha256=-RDql0Z6iy50KdTmKWf5iP7VJ65mOeZfCtkT1lUiDsQ,4801
|
|
545
|
+
orionis-0.499.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
546
|
+
orionis-0.499.0.dist-info/top_level.txt,sha256=2bdoHgyGZhOtLAXS6Om8OCTmL24dUMC_L1quMe_ETbk,14
|
|
547
|
+
orionis-0.499.0.dist-info/zip-safe,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
|
|
548
|
+
orionis-0.499.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|