@@ -104,13 +104,10 @@ def pytest_sessionfinish(session, exitstatus):
104104 return
105105
106106 if is_xdist :
107- print ("Merging reports in main process..." )
108107 merge_json_reports (directory = ".pytest_worker_jsons" , output_path = json_path )
109- print (f"✅ Merged report written to { json_path } " )
110108 else :
111109 reporter .results = mark_flaky_tests (reporter .results )
112110 reporter .write_report ()
113- print (f"✅ Standalone JSON report written to { json_path } " )
114111
115112 script_path = os .path .join (os .path .dirname (__file__ ), "generate_html_report.py" )
116113
@@ -126,7 +123,6 @@ def pytest_sessionfinish(session, exitstatus):
126123 "--screenshots" , screenshots ,
127124 "--output" , html_output
128125 ], check = True )
129- print (f"✅ HTML report generated at { html_output } /report.html" )
130126 except Exception as e :
131127 print (f"❌ Exception during HTML report generation: { e } " )
132128
@@ -141,16 +137,11 @@ def pytest_sessionfinish(session, exitstatus):
141137
142138def pytest_sessionstart (session ):
143139 configure_logging ()
144- print ("Plugin loaded: pytest_sessionstart called" )
145140 session .config .addinivalue_line (
146141 "markers" , "link(url): Add a link to external test case or documentation."
147142 )
148143
149144
150- def pytest_runtest_logreport (report ):
151- print (f"pytest_runtest_logreport: { report .nodeid } - { report .outcome } " )
152-
153-
154145def pytest_load_initial_conftests (args ):
155146 if not any (arg .startswith ("--capture" ) for arg in args ):
156147 args .append ("--capture=tee-sys" )
@@ -192,9 +183,7 @@ def pytest_addoption(parser):
192183 help = "Helps capture flaky tests in the last n number of builds"
193184 )
194185
195-
196186def take_screenshot_on_failure (item , page ):
197- print ("✅ take_screenshot_on_failure was called" )
198187 screenshot_dir = os .path .join (os .getcwd (), "screenshots" )
199188 os .makedirs (screenshot_dir , exist_ok = True )
200189 filename = f"{ item .name } .png" .replace ("/" , "_" ).replace ("\\ " , "_" )
0 commit comments