@@ -106,10 +106,12 @@ class TEST_PROCESS_STATS:
106
106
cSkippedTests : int = 0
107
107
cNotXFailedTests : int = 0
108
108
cUnexpectedTests : int = 0
109
+ cAchtungTests : int = 0
109
110
110
111
FailedTests = list [str ]()
111
112
XFailedTests = list [str ]()
112
113
NotXFailedTests = list [str ]()
114
+ AchtungTests = list [str ]()
113
115
114
116
# --------------------------------------------------------------------
115
117
def incrementTotalTestCount () -> None :
@@ -160,6 +162,13 @@ def incrementNotXFailedTests(testID: str) -> None:
160
162
def incrementUnexpectedTests () -> None :
161
163
__class__ .cUnexpectedTests += 1
162
164
165
+ # --------------------------------------------------------------------
166
+ def incrementAchtungTestCount (testID : str ) -> None :
167
+ assert type (testID ) == str # noqa: E721
168
+ assert type (__class__ .AchtungTests ) == list # noqa: E721
169
+
170
+ __class__ .AchtungTests .append (testID ) # raise?
171
+ __class__ .cAchtungTests += 1
163
172
164
173
# /////////////////////////////////////////////////////////////////////////////
165
174
@@ -234,10 +243,20 @@ def helper__makereport__setup(
234
243
235
244
assert rep .outcome != "passed"
236
245
246
+ TEST_PROCESS_STATS .incrementAchtungTestCount (testID )
247
+
237
248
logging .info (C_LINE1 )
238
249
logging .info ("* ACHTUNG TEST {0}" .format (testID ))
239
250
logging .info ("*" )
251
+ logging .info ("* Path : {0}" .format (item .path ))
240
252
logging .info ("* Outcome is [{0}]" .format (rep .outcome ))
253
+
254
+ if rep .outcome == "failed" :
255
+ assert call .excinfo is not None
256
+ assert call .excinfo .value is not None
257
+ logging .info ("*" )
258
+ logging .error (call .excinfo .value )
259
+
241
260
logging .info ("*" )
242
261
return
243
262
@@ -443,6 +462,15 @@ def run_after_tests(request: pytest.FixtureRequest):
443
462
444
463
yield
445
464
465
+ logging .info ("--------------------------- [ACHTUNG TESTS]" )
466
+ logging .info ("" )
467
+
468
+ assert len (TEST_PROCESS_STATS .AchtungTests ) == TEST_PROCESS_STATS .cAchtungTests
469
+
470
+ if len (TEST_PROCESS_STATS .AchtungTests ) > 0 :
471
+ helper__print_test_list (TEST_PROCESS_STATS .AchtungTests )
472
+ logging .info ("" )
473
+
446
474
logging .info ("--------------------------- [FAILED TESTS]" )
447
475
logging .info ("" )
448
476
0 commit comments