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
Spec code completion #5671
Spec code completion #5671
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would be interesting to use this :)
Ci shows lots of failing spec tests |
This test is breaking, but I find it super brittle... |
- do not try to instantiate the completion engine if CompletionEngineClass is nil
I will ask you why you find it brittle. |
Guille apparently the methods are not well categorized. |
Well, I particularly do not like that the code depends on a singleton class like that. Then, I find overly complex that the test does:
I do not like that the test is a succession of side-effect dependencies with strange semantics. Are those assert independent? Are they dependent on each other? If they are independent, why not using different tests? |
Ok I understand some points. But the ensure section was not making sure that the state of the system was ok? |
I agree with the sequence and overlapping part :) |
Now I asked because I could have written such a test :) |
I know you're right about that :). Now, the problem with this global state I think is this:
Just a singleton problem :) |
Now, I added two tests that show how we can modify the code completion engine per instance. The test is not so interesting, it just shows we can ignore the global variable :). |
I see I like the analysis. Indeed I did not think about the debugger before the ensure. |
Extend rubric and Spec to be able to set the code completion engine from the outside.