orionis 0.593.0__py3-none-any.whl → 0.594.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.
@@ -5,7 +5,7 @@
5
5
  NAME = "orionis"
6
6
 
7
7
  # Current version of the framework
8
- VERSION = "0.593.0"
8
+ VERSION = "0.594.0"
9
9
 
10
10
  # Full name of the author or maintainer of the project
11
11
  AUTHOR = "Raul Mauricio Uñate Castro"
@@ -1,20 +1,141 @@
1
+ import unittest
1
2
  from abc import ABC, abstractmethod
2
- from pathlib import Path
3
- from typing import Any, Dict, List, Optional
4
- from orionis.foundation.config.testing.enums import ExecutionMode
5
- from orionis.foundation.config.testing.enums.drivers import PersistentDrivers
6
- from orionis.foundation.config.testing.enums.verbosity import VerbosityMode
3
+ from typing import Any, Dict, List
7
4
 
8
5
  class IUnitTest(ABC):
9
6
 
10
7
  @abstractmethod
11
8
  def run(self) -> Dict[str, Any]:
12
9
  """
13
- Execute all discovered tests.
10
+ Execute the test suite and return a summary of the results.
14
11
 
15
12
  Returns
16
13
  -------
17
14
  dict
18
- Results of the test execution.
15
+ Dictionary summarizing the test results, including statistics and execution time.
16
+
17
+ Raises
18
+ ------
19
+ OrionisTestFailureException
20
+ If the test suite execution fails and throw_exception is True.
21
+ """
22
+ pass
23
+
24
+ @abstractmethod
25
+ def getDiscoveredTestCases(
26
+ self
27
+ ) -> List[unittest.TestCase]:
28
+ """
29
+ Return a list of all discovered test case classes in the test suite.
30
+
31
+ This method provides access to all unique test case classes that have been discovered
32
+ during test suite initialization and loading. It does not execute any tests, but simply
33
+ reports the discovered test case classes.
34
+
35
+ Returns
36
+ -------
37
+ List[unittest.TestCase]
38
+ A list of unique `unittest.TestCase` classes that have been discovered in the suite.
39
+
40
+ Notes
41
+ -----
42
+ - The returned list contains the test case classes, not instances or names.
43
+ - The classes are derived from the `__class__` attribute of each discovered test case.
44
+ - This method is useful for introspection or reporting purposes.
45
+ """
46
+ pass
47
+
48
+ @abstractmethod
49
+ def getDiscoveredModules(
50
+ self
51
+ ) -> List:
52
+ """
53
+ Return a list of all discovered test module names in the test suite.
54
+
55
+ This method provides access to all unique test modules that have been discovered
56
+ during test suite initialization and loading. It does not execute any tests, but simply
57
+ reports the discovered module names.
58
+
59
+ Parameters
60
+ ----------
61
+ None
62
+
63
+ Returns
64
+ -------
65
+ List[str]
66
+ A list of unique module names (as strings) that have been discovered in the suite.
67
+
68
+ Notes
69
+ -----
70
+ - The returned list contains the module names, not module objects.
71
+ - The module names are derived from the `__module__` attribute of each discovered test case.
72
+ - This method is useful for introspection or reporting purposes.
73
+ """
74
+ pass
75
+
76
+ @abstractmethod
77
+ def getTestIds(
78
+ self
79
+ ) -> List[str]:
80
+ """
81
+ Return a list of all unique test IDs discovered in the test suite.
82
+
83
+ This method provides access to the unique identifiers (IDs) of all test cases
84
+ that have been discovered and loaded into the suite. The IDs are collected from
85
+ each `unittest.TestCase` instance during test discovery and are returned as a list
86
+ of strings. This is useful for introspection, reporting, or filtering purposes.
87
+
88
+ Parameters
89
+ ----------
90
+ None
91
+
92
+ Returns
93
+ -------
94
+ List[str]
95
+ A list of strings, where each string is the unique ID of a discovered test case.
96
+ The IDs are generated by the `id()` method of each `unittest.TestCase` instance.
97
+
98
+ Notes
99
+ -----
100
+ - The returned list contains only unique test IDs.
101
+ - This method does not execute any tests; it only reports the discovered IDs.
102
+ - The IDs typically include the module, class, and method name for each test case.
103
+ """
104
+ pass
105
+
106
+ @abstractmethod
107
+ def getTestCount(
108
+ self
109
+ ) -> int:
110
+ """
111
+ Return the total number of individual test cases discovered in the test suite.
112
+
113
+ This method calculates and returns the total number of test cases that have been
114
+ discovered and loaded into the suite, including all modules and filtered tests.
115
+ It uses the internal metadata collected during test discovery to provide an accurate count.
116
+
117
+ Returns
118
+ -------
119
+ int
120
+ The total number of individual test cases discovered and loaded in the suite.
121
+
122
+ Notes
123
+ -----
124
+ - The count reflects all tests after applying any name pattern or folder filtering.
125
+ - This method does not execute any tests; it only reports the discovered count.
126
+ """
127
+ pass
128
+
129
+ @abstractmethod
130
+ def getResult(
131
+ self
132
+ ) -> dict:
133
+ """
134
+ Get the results of the executed test suite.
135
+
136
+ Returns
137
+ -------
138
+ dict
139
+ Result of the executed test suite.
19
140
  """
20
141
  pass
@@ -1014,7 +1014,7 @@ class UnitTest(IUnitTest):
1014
1014
  # Return the TestSuite containing the resolved test case
1015
1015
  return suite
1016
1016
 
1017
- except Exception as e:
1017
+ except Exception:
1018
1018
 
1019
1019
  # On any error, return the original test case without injection
1020
1020
  return test_case
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: orionis
3
- Version: 0.593.0
3
+ Version: 0.594.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
@@ -217,7 +217,7 @@ orionis/foundation/providers/scheduler_provider.py,sha256=irwkjMiq-HpsbJxAOnhjji
217
217
  orionis/foundation/providers/testing_provider.py,sha256=2akFnabtH_cV_7z_2cCL7u8cPCGvCJAmlhMcnlCrc4c,3742
218
218
  orionis/foundation/providers/workers_provider.py,sha256=P_YtJuPNrdJAQJkAqI11KI0c6GSB9NqIuuCKpRytE0g,3937
219
219
  orionis/metadata/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
220
- orionis/metadata/framework.py,sha256=s6s0dYCwOfjVO09Leal7YLnkxZ0CYqHnEB3e5xJ3E-E,4109
220
+ orionis/metadata/framework.py,sha256=QBxCwK8RQb3eyByXhYfD9zhhx-zJjfQg4fFDbk8PLhE,4109
221
221
  orionis/metadata/package.py,sha256=k7Yriyp5aUcR-iR8SK2ec_lf0_Cyc-C7JczgXa-I67w,16039
222
222
  orionis/services/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
223
223
  orionis/services/asynchrony/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -370,9 +370,9 @@ orionis/test/contracts/logs.py,sha256=kRH3TGQcTNI0kRxFyEs13Y7NOPP9x9WGitPexnoLzQ
370
370
  orionis/test/contracts/printer.py,sha256=iBz8wHAGaS21VBsHlZQVcx0xu9Bqusb-CLAjj-R1Sjg,3412
371
371
  orionis/test/contracts/render.py,sha256=wpDQzUtT0r8KFZ7zPcxWHXQ1EVNKxzA_rZ6ZKUcZO1c,744
372
372
  orionis/test/contracts/test_result.py,sha256=SNXJ2UerkweYn7uCT0i0HmMGP0XBrL_9KJs-0ZvIYU4,4002
373
- orionis/test/contracts/unit_test.py,sha256=6DG8rqhBSvTf3lwtmzyO_xci_V-9WxBP6ZibATeQ3Gw,589
373
+ orionis/test/contracts/unit_test.py,sha256=EyidHoOPJItwgkBWGYY1TymbNklyn2EUXnghVvW4htc,4652
374
374
  orionis/test/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
375
- orionis/test/core/unit_test.py,sha256=U5HT1a6s-Wosz5BC7Pi5cPreRyLzFJWbEoKWw7jdvvY,72957
375
+ orionis/test/core/unit_test.py,sha256=WrV4WDU-oNhwzeDeJIqQbyNYNwoO8CL3C0cD7IHtUMM,72952
376
376
  orionis/test/entities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
377
377
  orionis/test/entities/result.py,sha256=eZ6UIqGmFW8FZ9x8PB_MZbLAc-SAuUyi4FUcMYIZzGo,4777
378
378
  orionis/test/enums/__init__.py,sha256=M3imAgMvKFTKg55FbtVoY3zxj7QRY9AfaUWxiSZVvn4,66
@@ -406,8 +406,8 @@ orionis/test/validators/workers.py,sha256=rWcdRexINNEmGaO7mnc1MKUxkHKxrTsVuHgbnI
406
406
  orionis/test/view/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
407
407
  orionis/test/view/render.py,sha256=R55ykeRs0wDKcdTf4O1YZ8GDHTFmJ0IK6VQkbJkYUvo,5571
408
408
  orionis/test/view/report.stub,sha256=QLqqCdRoENr3ECiritRB3DO_MOjRQvgBh5jxZ3Hs1r0,28189
409
- orionis-0.593.0.dist-info/licenses/LICENCE,sha256=JhC-z_9mbpUrCfPjcl3DhDA8trNDMzb57cvRSam1avc,1463
410
- orionis-0.593.0.dist-info/METADATA,sha256=O3C-w6zuLT6bsvYt-y-TlgqIw03W_A9EQ17OadTCTdc,4801
411
- orionis-0.593.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
412
- orionis-0.593.0.dist-info/top_level.txt,sha256=lyXi6jArpqJ-0zzNqd_uwsH-z9TCEBVBL-pC3Ekv7hU,8
413
- orionis-0.593.0.dist-info/RECORD,,
409
+ orionis-0.594.0.dist-info/licenses/LICENCE,sha256=JhC-z_9mbpUrCfPjcl3DhDA8trNDMzb57cvRSam1avc,1463
410
+ orionis-0.594.0.dist-info/METADATA,sha256=b5WUz7L2LJm1-S-W1s40bw_gZwt2hbLaDY1zZVKlAzU,4801
411
+ orionis-0.594.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
412
+ orionis-0.594.0.dist-info/top_level.txt,sha256=lyXi6jArpqJ-0zzNqd_uwsH-z9TCEBVBL-pC3Ekv7hU,8
413
+ orionis-0.594.0.dist-info/RECORD,,