codeflash/tests
Kevin Turcios 04a94f2b03 test: update tests for refactored language support
- Update discover_functions calls to new (source, file_path) signature
- Use language-specific FunctionOptimizer subclasses in tests
- Add explicit utf-8 encoding to read_text()/write_text() for Windows
- Fix pytest fixture in TestTsJestSkipsConversion (was __init__)
- Update nonexistent file tests for source-based discover_functions
- Remove unused imports
2026-03-02 06:09:06 -05:00
..
benchmarks refactor: move context extraction modules to languages/python/context/ 2026-02-16 14:49:04 -05:00
code_utils refactor: move static_analysis, concolic_utils, coverage_utils to languages/python/static_analysis/ 2026-02-19 03:16:51 -05:00
languages/javascript fix: import jest patterns from source module instead of re-export 2026-02-13 09:55:14 -05:00
scripts fix: split discovery and instrumentation log messages for E2E harnesses 2026-03-02 02:16:50 -05:00
test_languages test: update tests for refactored language support 2026-03-02 06:09:06 -05:00
test_setup fix: prefer src/ over build output dirs in JS module detection 2026-02-02 19:53:36 -05:00
__init__.py Move aiservice to django/aiservice 2024-01-02 16:55:24 -08:00
conftest.py format and lint all 2026-01-29 01:39:48 -08:00
mymodule.py format and lint all 2026-01-29 01:39:48 -08:00
test_add_needed_imports_from_module.py test: add regression tests for comment position preservation 2026-02-23 01:12:49 -05:00
test_add_runtime_comments.py refactor: move line_profile_utils, edit_generated_tests to languages/python/static_analysis/ 2026-02-19 03:18:43 -05:00
test_async_concurrency_decorator.py format and lint all 2026-01-29 01:39:48 -08:00
test_async_function_discovery.py format and lint all 2026-01-29 01:39:48 -08:00
test_async_run_and_parse_tests.py refactor: use helper file for async decorator instrumentation 2026-02-18 08:17:08 +00:00
test_async_wrapper_sqlite_validation.py format and lint all 2026-01-29 01:39:48 -08:00
test_cmd_init.py remove test_framework from pyproject.toml (#955) 2025-12-09 02:53:08 -08:00
test_code_context_extractor.py feat: improve test generation context for external library types 2026-02-26 09:40:04 -05:00
test_code_deduplication.py test: update tests for refactored language support 2026-03-02 06:09:06 -05:00
test_code_extractor_none_aliases_exact.py refactor: move code_extractor, code_replacer to languages/python/static_analysis/ 2026-02-19 03:21:34 -05:00
test_code_replacement.py test: update tests for refactored language support 2026-03-02 06:09:06 -05:00
test_code_utils.py refactor: move static_analysis, concolic_utils, coverage_utils to languages/python/static_analysis/ 2026-02-19 03:16:51 -05:00
test_codeflash_capture.py fix: use PythonFunctionOptimizer in tests that depend on Python-specific hooks 2026-03-01 23:22:19 -05:00
test_codeflash_checkpoint.py format and lint all 2026-01-29 01:39:48 -08:00
test_codeflash_trace_decorator.py format and lint all 2026-01-29 01:39:48 -08:00
test_comparator.py fix: support Python 3.10-3.14 in comparator itertools tests 2026-02-28 00:05:36 +05:30
test_critic.py format and lint all 2026-01-29 01:39:48 -08:00
test_existing_tests_source_for.py format and lint all 2026-01-29 01:39:48 -08:00
test_file_to_no_of_tests.py format and lint all 2026-01-29 01:39:48 -08:00
test_formatter.py format and lint all 2026-01-29 01:39:48 -08:00
test_function_dependencies.py test: update tests for refactored language support 2026-03-02 06:09:06 -05:00
test_function_discovery.py test: update tests for refactored language support 2026-03-02 06:09:06 -05:00
test_function_ranker.py format and lint all 2026-01-29 01:39:48 -08:00
test_get_code.py refactor: move code_extractor, code_replacer to languages/python/static_analysis/ 2026-02-19 03:21:34 -05:00
test_get_helper_code.py test: update tests for refactored language support 2026-03-02 06:09:06 -05:00
test_get_read_only_code.py fix: preserve comment position by passing CST module directly to import adder 2026-02-23 01:08:39 -05:00
test_get_read_writable_code.py test: add regression tests for comment position preservation 2026-02-23 01:12:49 -05:00
test_get_testgen_code.py fix: preserve comment position by passing CST module directly to import adder 2026-02-23 01:08:39 -05:00
test_git_utils.py Add tests for handling detached HEAD state in Git operations 2025-12-18 14:05:04 +02:00
test_humanize_time.py format and lint all 2026-01-29 01:39:48 -08:00
test_init_javascript.py add tests 2026-02-02 23:22:10 +05:30
test_inject_profiling_used_frameworks.py format and lint all 2026-01-29 01:39:48 -08:00
test_instrument_all_and_run.py format and lint all 2026-01-29 01:39:48 -08:00
test_instrument_async_tests.py refactor: use helper file for async decorator instrumentation 2026-02-18 08:17:08 +00:00
test_instrument_codeflash_capture.py reinsert 2025-07-29 23:49:22 -07:00
test_instrument_codeflash_trace.py format and lint all 2026-01-29 01:39:48 -08:00
test_instrument_line_profiler.py test: update tests for refactored language support 2026-03-02 06:09:06 -05:00
test_instrument_tests.py fix: use PythonFunctionOptimizer in tests that depend on Python-specific hooks 2026-03-01 23:22:19 -05:00
test_instrumentation_run_results_aiservice.py format and lint all 2026-01-29 01:39:48 -08:00
test_is_numerical_code.py fix: update stale @patch paths in test_is_numerical_code.py 2026-02-19 05:00:38 -05:00
test_javascript_assertion_removal.py refactor: use FunctionToOptimize dataclass instead of raw strings in JS optimization 2026-02-02 01:53:02 -08:00
test_javascript_function_discovery.py fix: include same-class helper methods inside class wrapper for TypeScript 2026-02-06 17:19:46 +02:00
test_lru_cache_clear.py perf: cache module scan in _clear_lru_caches and expand test coverage 2026-02-22 01:17:05 -05:00
test_merge_test_results.py organized imports 2025-03-28 15:26:27 -07:00
test_merge_tests.py update the test-key format 2024-01-22 16:26:32 -08:00
test_multi_file_code_replacement.py test: update tests for refactored language support 2026-03-02 06:09:06 -05:00
test_parse_pytest_test_failures.py format and lint all 2026-01-29 01:39:48 -08:00
test_parse_test_output_regex.py style: add return type annotations to test methods 2026-02-19 03:56:13 +00:00
test_pickle_patcher.py format and lint all 2026-01-29 01:39:48 -08:00
test_pytest_plugin_deterministic_patches.py update tests 2025-10-28 23:05:26 -07:00
test_reference_graph.py refactor: rename test file and imports to match reference graph rename 2026-02-19 02:30:27 -05:00
test_remove_functions_from_generated_tests.py refactor: move line_profile_utils, edit_generated_tests to languages/python/static_analysis/ 2026-02-19 03:18:43 -05:00
test_remove_unused_definitions.py refactor: move context extraction modules to languages/python/context/ 2026-02-16 14:49:04 -05:00
test_shell_utils.py format and lint all 2026-01-29 01:39:48 -08:00
test_static_analysis.py refactor: move static_analysis, concolic_utils, coverage_utils to languages/python/static_analysis/ 2026-02-19 03:16:51 -05:00
test_test_runner.py test: update tests for refactored language support 2026-03-02 06:09:06 -05:00
test_trace_benchmarks.py format and lint all 2026-01-29 01:39:48 -08:00
test_tracer.py format and lint all 2026-01-29 01:39:48 -08:00
test_unit_test_discovery.py format and lint all 2026-01-29 01:39:48 -08:00
test_unused_helper_revert.py fix: address review feedback on PythonFunctionOptimizer extraction 2026-03-01 23:51:43 -05:00
test_validate_javascript_code.py ts and js validation test 2026-02-05 04:31:48 +05:30
test_validate_python_code.py format and lint all 2026-01-29 01:39:48 -08:00
test_version_check.py format and lint all 2026-01-29 01:39:48 -08:00
test_worktree.py should be tests 2026-02-27 09:23:11 -05:00