-
Notifications
You must be signed in to change notification settings - Fork 326
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
Test Reload_Detector
through the language server
#11792
Comments
No, I am against adding builtins just to artificially increase test coverage. |
Just to repeat myself: Logic of Line 96 in cc0b020
We have a unit test of
If one has too... then it is up to you guys... just no builtins or anything that would be visible (and I don't count |
Yes we already had a bug in there. There's no report because we managed to find it before the PR introducing it was even merged. But that suggests that the test coverage is not enough for this feature - as @GregoryTravis noted - all unit tests were passing but the feature was not working.
@JaroslavTulach What about a |
@JaroslavTulach I respect your opinion about not adding builtins -- so the alternative for this is a Scala test, I think. Can you point to a test that I could base this on? One that can trigger the real resource finalization, and examine the effect on a real Enso value. |
I believe you can make a copy of Line 22 in 9f0c0c0
I believe it tests everything:
It should be a great base for your test. |
btw. reading the #11673 PR I think it would also be good to add a test that ensures that clicking the refresh button once, ensures that reload happens only once. To avoid a situation where clicking refresh button would cause caches to be effectively disabled. Thus the test should not be testing |
Write a test that checks that the
Managed_Resource
cache-clearing method inReload_Detector
works correctly, without using a fake trigger, as the test in Fetch_Spec.enso does. Original discussionOptions are:
scheduleFinalizationOfSystemReferences
to be called from EnsoThe text was updated successfully, but these errors were encountered: