-
Notifications
You must be signed in to change notification settings - Fork 22
Cache discovered tests #184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
⚡️ Codeflash found optimizations for this PR📄 17% (0.17x) speedup for
|
PR Type
Enhancement, Tests
Description
Add SQLite-based test discovery cache
Integrate caching into test processing
Define cache directory via platformdirs
Enhance cleanup for generated and temp files
Changes walkthrough 📝
code_utils.py
Support directory cleanup in cleanup_pathscodeflash/code_utils/code_utils.py
function_optimizer.py
Unify cleanup for generated test filescodeflash/optimization/function_optimizer.py
cleanup_generated_filesmethodcleanup_pathsfor cleanupoptimizer.py
Simplify optimizer cleanup logiccodeflash/optimization/optimizer.py
cleanup_pathsandget_run_tmp_fileshutilimport and manual cleanupcleanup_generated_filesinsteadcompat.py
Configure codeflash cache directorycodeflash/code_utils/compat.py
user_config_dirfrom platformdirscodeflash_cache_dirdefinitiondiscover_unit_tests.py
Implement SQLite-based test discovery cachecodeflash/discovery/discover_unit_tests.py
TestsCacheSQLite caching for testsprocess_test_files