orionis 0.591.0__py3-none-any.whl → 0.593.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/foundation/config/testing/entities/testing.py +0 -16
- orionis/metadata/framework.py +1 -1
- orionis/test/contracts/unit_test.py +0 -81
- orionis/test/core/unit_test.py +737 -604
- orionis/test/output/printer.py +258 -174
- orionis/test/records/logs.py +223 -83
- orionis/test/view/render.py +45 -17
- {orionis-0.591.0.dist-info → orionis-0.593.0.dist-info}/METADATA +1 -1
- {orionis-0.591.0.dist-info → orionis-0.593.0.dist-info}/RECORD +12 -12
- {orionis-0.591.0.dist-info → orionis-0.593.0.dist-info}/WHEEL +0 -0
- {orionis-0.591.0.dist-info → orionis-0.593.0.dist-info}/licenses/LICENCE +0 -0
- {orionis-0.591.0.dist-info → orionis-0.593.0.dist-info}/top_level.txt +0 -0
@@ -19,8 +19,6 @@ class Testing(BaseEntity):
|
|
19
19
|
Maximum number of worker threads/processes for parallel execution (default: calculated by Workers).
|
20
20
|
fail_fast : bool, optional
|
21
21
|
If True, stop execution after the first test failure (default: False).
|
22
|
-
print_result : bool, optional
|
23
|
-
If True, print test results to the console (default: True).
|
24
22
|
throw_exception : bool, optional
|
25
23
|
If True, raise an exception on test failure (default: False).
|
26
24
|
base_path : str, optional
|
@@ -75,14 +73,6 @@ class Testing(BaseEntity):
|
|
75
73
|
}
|
76
74
|
)
|
77
75
|
|
78
|
-
print_result: bool = field(
|
79
|
-
default = True,
|
80
|
-
metadata = {
|
81
|
-
"description": "Whether to print the test results to the console. Default is True.",
|
82
|
-
"default": True
|
83
|
-
}
|
84
|
-
)
|
85
|
-
|
86
76
|
throw_exception: bool = field(
|
87
77
|
default = False,
|
88
78
|
metadata = {
|
@@ -206,12 +196,6 @@ class Testing(BaseEntity):
|
|
206
196
|
f"Invalid type for 'fail_fast': {type(self.fail_fast).__name__}. It must be a boolean (True or False)."
|
207
197
|
)
|
208
198
|
|
209
|
-
# Validate print_result attribute
|
210
|
-
if not isinstance(self.print_result, bool):
|
211
|
-
raise OrionisIntegrityException(
|
212
|
-
f"Invalid type for 'print_result': {type(self.print_result).__name__}. It must be a boolean (True or False)."
|
213
|
-
)
|
214
|
-
|
215
199
|
# Validate throw_exception attribute
|
216
200
|
if not isinstance(self.throw_exception, bool):
|
217
201
|
raise OrionisIntegrityException(
|
orionis/metadata/framework.py
CHANGED
@@ -17,85 +17,4 @@ class IUnitTest(ABC):
|
|
17
17
|
dict
|
18
18
|
Results of the test execution.
|
19
19
|
"""
|
20
|
-
pass
|
21
|
-
|
22
|
-
@abstractmethod
|
23
|
-
def getTestNames(self) -> List[str]:
|
24
|
-
"""
|
25
|
-
Retrieve the list of discovered test names.
|
26
|
-
|
27
|
-
Returns
|
28
|
-
-------
|
29
|
-
list of str
|
30
|
-
Names of all discovered tests.
|
31
|
-
"""
|
32
|
-
pass
|
33
|
-
|
34
|
-
@abstractmethod
|
35
|
-
def getTestCount(self) -> int:
|
36
|
-
"""
|
37
|
-
Get the total number of discovered tests.
|
38
|
-
|
39
|
-
Returns
|
40
|
-
-------
|
41
|
-
int
|
42
|
-
Number of discovered tests.
|
43
|
-
"""
|
44
|
-
pass
|
45
|
-
|
46
|
-
@abstractmethod
|
47
|
-
def clearTests(self) -> None:
|
48
|
-
"""
|
49
|
-
Remove all discovered tests from the runner.
|
50
|
-
"""
|
51
|
-
pass
|
52
|
-
|
53
|
-
@abstractmethod
|
54
|
-
def getResult(self) -> dict:
|
55
|
-
"""
|
56
|
-
Retrieve the results of the last test run.
|
57
|
-
|
58
|
-
Returns
|
59
|
-
-------
|
60
|
-
dict
|
61
|
-
Results of the last test execution.
|
62
|
-
"""
|
63
|
-
pass
|
64
|
-
|
65
|
-
@abstractmethod
|
66
|
-
def getOutputBuffer(self) -> int:
|
67
|
-
"""
|
68
|
-
Get the size or identifier of the output buffer.
|
69
|
-
|
70
|
-
Returns
|
71
|
-
-------
|
72
|
-
int
|
73
|
-
Output buffer size or identifier.
|
74
|
-
"""
|
75
|
-
pass
|
76
|
-
|
77
|
-
@abstractmethod
|
78
|
-
def printOutputBuffer(self) -> None:
|
79
|
-
"""
|
80
|
-
Print the contents of the output buffer to the console.
|
81
|
-
"""
|
82
|
-
pass
|
83
|
-
|
84
|
-
@abstractmethod
|
85
|
-
def getErrorBuffer(self) -> int:
|
86
|
-
"""
|
87
|
-
Get the size or identifier of the error buffer.
|
88
|
-
|
89
|
-
Returns
|
90
|
-
-------
|
91
|
-
int
|
92
|
-
Error buffer size or identifier.
|
93
|
-
"""
|
94
|
-
pass
|
95
|
-
|
96
|
-
@abstractmethod
|
97
|
-
def printErrorBuffer(self) -> None:
|
98
|
-
"""
|
99
|
-
Print the contents of the error buffer to the console.
|
100
|
-
"""
|
101
20
|
pass
|