1515if TYPE_CHECKING :
1616 from codeflash .models .models import TestFiles
1717
18- BEHAVIORAL_BLOCKLISTED_PLUGINS = ["benchmark" ]
19- BENCHMARKING_BLOCKLISTED_PLUGINS = ["codspeed" , "cov" , "benchmark" , "profiling" ]
18+ BEHAVIORAL_BLOCKLISTED_PLUGINS = ["benchmark" , "codspeed" , "xdist" , "sugar" ]
19+ BENCHMARKING_BLOCKLISTED_PLUGINS = ["codspeed" , "cov" , "benchmark" , "profiling" , "xdist" , "sugar" ]
2020
2121
2222def execute_test_subprocess (
@@ -141,6 +141,7 @@ def run_behavioral_tests(
141141 coverage_config_file if enable_coverage else None ,
142142 )
143143
144+
144145def run_line_profile_tests (
145146 test_paths : TestFiles ,
146147 pytest_cmd : str ,
@@ -154,7 +155,6 @@ def run_line_profile_tests(
154155 pytest_min_loops : int = 5 ,
155156 pytest_max_loops : int = 100_000 ,
156157 line_profiler_output_file : Path | None = None ,
157-
158158) -> tuple [Path , subprocess .CompletedProcess ]:
159159 if test_framework == "pytest" :
160160 pytest_cmd_list = (
@@ -191,7 +191,7 @@ def run_line_profile_tests(
191191 pytest_test_env = test_env .copy ()
192192 pytest_test_env ["PYTEST_PLUGINS" ] = "codeflash.verification.pytest_plugin"
193193 blocklist_args = [f"-p no:{ plugin } " for plugin in BENCHMARKING_BLOCKLISTED_PLUGINS ]
194- pytest_test_env ["LINE_PROFILE" ]= "1"
194+ pytest_test_env ["LINE_PROFILE" ] = "1"
195195 results = execute_test_subprocess (
196196 pytest_cmd_list + pytest_args + blocklist_args + result_args + test_files ,
197197 cwd = cwd ,
@@ -203,6 +203,7 @@ def run_line_profile_tests(
203203 raise ValueError (msg )
204204 return line_profiler_output_file , results
205205
206+
206207def run_benchmarking_tests (
207208 test_paths : TestFiles ,
208209 pytest_cmd : str ,
0 commit comments