mirror of
https://github.com/codeflash-ai/codeflash-agent.git
synced 2026-05-04 18:25:19 +00:00
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.
35 lines
784 B
Python
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",
|
|
]
|