Replies: 1 comment 3 replies
-
|
Thanks for the feedback. Regarding what you mentioned, unfortunately, checking for the string That said, we're no longer using that strategy to detect test frameworks since introducing the new explorer implementation. Add-ons now have much more flexibility to introduce test groups and examples and the gem names are not really involved anymore. Do you happen to have the new experience turned off in your settings? {
// This is how you would turn it off
"rubyLsp.featureFlags": {
"fullTestDiscovery": false,
}
}And are you on the latest versions of both the VS Code extension and the server gem? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a Hanami project using RSpec for tests, but Ruby LSP does not detect it as a test framework. Upon examining the code I figured this is because the detection code looks for gems directly mentioned in
Gemfilestarting with "rspec" string (sorspec-railsetc. are caught), but in Hanami it'shanami-rspec.I understand that the ideal solution would be a Hanami addon that takes care of that (and I think some folks are working on it), but at the same time I was wondering if maybe relaxing the detection conditions could not immediately solve the issue here. I was thinking about something like:
Do you think it would lead to some false positives?
EDIT: After some more code spelunking, I think it would not be so easy for an addon to change that, which makes this perhaps even more worth discussing.
Beta Was this translation helpful? Give feedback.
All reactions