-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Live/incremental testing #8420
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
Comments
Just dumping some further thoughts here, for my own recollection.
|
No object files are created. All dependencies need to be available as dynamic libraries and will be loaded using |
Maybe in some distant future, the incremental query system can include test execution 🤔 |
Further to discussion on Zulip a while back, this issue is to track what's required to achieve "Live/incremental testing" for Rust (à la Wallaby.js and Visual Studio); the goal is for RA to run only those tests that have been affected by edits and display the results inline.
The broad design in mind for this is as follows:
* The ultimate solution would probably instrument at the level of basic blocks, eg via
-Zinstrument-coverage
—but this (presently) requires LLVM, whereas cg-clif is probably a better fit for this feature overall (e.g. because hot-swapped JIT can help minimise compilation times); instrumenting at the function level may be more easily achievable at the outset.** The ultimate solution would probably enqueue affected tests as code is being edited—but this requires virtual files to be shared from RA to rustc for compilation, and currently rustc is not called in-process; queuing affected tests on save may be more achievable at the outset.
On the UI front, it's probably worth noting that VSCode may get some sort of API for precisely this over the next couple of months.
The text was updated successfully, but these errors were encountered: