orionis 0.498.0__py3-none-any.whl → 0.500.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.
@@ -515,7 +515,6 @@ class Console(IConsole):
515
515
  from rich.traceback import Traceback
516
516
 
517
517
  rc = RichConsole()
518
- rc.print("[bold red]❌ Exception caught in method[/]")
519
518
  tb = Traceback.from_exception(type(e), e, e.__traceback__, max_frames=1)
520
519
  rc.print(tb)
521
520
 
@@ -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 (self, exception: BaseException, log: ILogger) -> Any:
68
+ def report(self, exception: BaseException, log: ILogger) -> Any:
69
69
  """
70
70
  Report or log an exception.
71
71
 
@@ -5,7 +5,7 @@
5
5
  NAME = "orionis"
6
6
 
7
7
  # Current version of the framework
8
- VERSION = "0.498.0"
8
+ VERSION = "0.500.0"
9
9
 
10
10
  # Full name of the author or maintainer of the project
11
11
  AUTHOR = "Raul Mauricio Uñate Castro"
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
- # Execute the unit test suite through the injected unit test service
100
- try:
101
-
102
- # Log the start of test execution
103
- ouput = self.__unit_test.run()
104
-
105
- # Extract report details from output
106
- total_tests = ouput.get("total_tests")
107
- passed = ouput.get("passed")
108
- failed = ouput.get("failed")
109
- errors = ouput.get("errors")
110
- skipped = ouput.get("skipped")
111
- total_time = ouput.get("total_time")
112
- success_rate = ouput.get("success_rate")
113
- timestamp = ouput.get("timestamp")
114
-
115
- # Log test execution completion with detailed summary
116
- self.__logger.info(
117
- f"Test execution completed at {timestamp} | "
118
- f"Total: {total_tests}, Passed: {passed}, Failed: {failed}, "
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
- # Handle any unexpected errors that occur during test execution
132
- except Exception as e:
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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: orionis
3
- Version: 0.498.0
3
+ Version: 0.500.0
4
4
  Summary: Orionis Framework – Elegant, Fast, and Powerful.
5
5
  Home-page: https://github.com/orionis-framework/framework
6
6
  Author: Raul Mauricio Uñate Castro
@@ -49,7 +49,7 @@ orionis/console/exceptions/cli_orionis_value_error.py,sha256=RQP0HRwxDG8hxFOT1kU
49
49
  orionis/console/exceptions/cli_runtime_error.py,sha256=DaCDGu6mXBk1LIzc7cwRROw1mePAigPNASjNZHhUSBE,1154
50
50
  orionis/console/exceptions/cli_schedule_exception.py,sha256=IBbXb_5zi02pyo1laHdjGn6FYZK7WWRp4j2fkZOCT6I,1161
51
51
  orionis/console/output/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
52
- orionis/console/output/console.py,sha256=5FTlnbRZqhdXwhkoz9SEGlKHUeNAg4wAPPZ4qvrrpeg,17960
52
+ orionis/console/output/console.py,sha256=4DmoZZ8g6Ra_WtFsCyiszFVDs_3ezX6TKGuAcuS7gnQ,17895
53
53
  orionis/console/output/executor.py,sha256=9A8lCSU9DEVKhMsQLwBhFKW44Mz7KP-ig-o-4Vm-EcU,7328
54
54
  orionis/console/output/contracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
55
55
  orionis/console/output/contracts/console.py,sha256=phaQhCLWa81MLzB5ydOSaUfEIdDq7fOjvym8Rmi-arc,11908
@@ -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=c_OymSrlR83rwHrZUuMcoyA_q9hhguNNxY_phaguMPg,4465
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=zavyi4jnsHED86jRJAMLplrPNWnvLqPLhQLrZFS0ZLA,4109
221
+ orionis/metadata/framework.py,sha256=wHQN4aiFly7CiUIgD-iU07sJmnOrXT0jSSngYsTv6DY,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=qVEWboHxLdEaAIr9a_8qgWEVMqCEGq8VYNQP-dfEowc,6357
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.498.0.dist-info/licenses/LICENCE,sha256=JhC-z_9mbpUrCfPjcl3DhDA8trNDMzb57cvRSam1avc,1463
397
+ orionis-0.500.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.498.0.dist-info/METADATA,sha256=HgS8lALjhbLJMEXjRKWd6E8uB1wJq4NZFTm-aogbDA8,4801
545
- orionis-0.498.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
546
- orionis-0.498.0.dist-info/top_level.txt,sha256=2bdoHgyGZhOtLAXS6Om8OCTmL24dUMC_L1quMe_ETbk,14
547
- orionis-0.498.0.dist-info/zip-safe,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
548
- orionis-0.498.0.dist-info/RECORD,,
544
+ orionis-0.500.0.dist-info/METADATA,sha256=yqGd7w6wSp9OkbwBS0GVde29zkaAud21xfMdwDGRV8Y,4801
545
+ orionis-0.500.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
546
+ orionis-0.500.0.dist-info/top_level.txt,sha256=2bdoHgyGZhOtLAXS6Om8OCTmL24dUMC_L1quMe_ETbk,14
547
+ orionis-0.500.0.dist-info/zip-safe,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
548
+ orionis-0.500.0.dist-info/RECORD,,