codeflash-agent/packages/codeflash-python/src/codeflash_python/testing/__init__.py
Kevin Turcios 92e39d6923 Convert remaining sync test runner callers to async
Replace all sync test runner calls (run_behavioral_tests,
run_benchmarking_tests, run_line_profile_tests) with their async
counterparts throughout the pipeline. This eliminates the
ThreadPoolExecutor in _baseline.py in favor of asyncio.gather(),
and makes _async_bench.py, _candidate_gen.py, and
_function_optimizer.py fully async. Adds async_run_line_profile_tests
and coverage support to async_run_behavioral_tests in _test_runner.py.
2026-04-23 01:46:01 -05:00

35 lines
784 B
Python

"""Test execution infrastructure."""
from ._parse_results import parse_test_results
from ._test_runner import (
async_run_behavioral_tests,
async_run_benchmarking_tests,
async_run_line_profile_tests,
run_behavioral_tests,
run_benchmarking_tests,
run_line_profile_tests,
)
from .models import (
FunctionTestInvocation,
InvocationId,
TestConfig,
TestFile,
TestFiles,
TestResults,
)
__all__ = [
"FunctionTestInvocation",
"InvocationId",
"TestConfig",
"TestFile",
"TestFiles",
"TestResults",
"async_run_behavioral_tests",
"async_run_benchmarking_tests",
"async_run_line_profile_tests",
"parse_test_results",
"run_behavioral_tests",
"run_benchmarking_tests",
"run_line_profile_tests",
]