Open andypeters opened 1 month ago
Hi @andypeters, this is a known limitation, there is some work happening here to try improve it:
https://github.com/Shopify/ruby-lsp/pull/2230
(I moved the issue to ruby-lsp-rails
, but I'm going to move it back since this is a more general problem)
Hey thanks @andyw8! Dang, I missed looking at active pull requests. My instinct told me you all knew about it, but you never know. All good and happy to hear you all are trying to get it working. I'll subscribe to that pull request and follow along.
Description:
When running a test class in the VScode Test Explorer, the tests take quite a while to complete. It seems they are running one at a time starting with the last test first (visually from the bottom up). Additionally, it indicates running in a single process per test.
If this is known or expected, I'm sorry I missed the mention. I scoped out the issue list here and shopify/ruby-lsp-rails as best I could. There were a few somewhat related regarding speed to rspec tests, but I know that is an extension so I thought it fitting to report in regard to minitest here. One being this: https://github.com/Shopify/ruby-lsp/issues/2049
Reproduction steps
test/models/foo_test.
Run / Run in Terminal / Debug
appear.test_helper.rb
:Grasping at straws, I went bonkers and nuclear 💥
.vscode
:rm -rf ~/.vscode
Library/Application Support/Code
. (or is it visual studio code - can't remember because its gone 😆 )Gifs for ya from a throw away rails app
Screenshot for "running in a single process"
Using very basic test. ie:
My environment
FWIW, this is the result on a handful of projects which are all up-to-date with Rails 7 using minitest. I'm using asdf and for this throw away project
ruby 3.3.2
.Here are the details for the throwaway rails project:
Output from VSCode for ruby-lsp:
Gem list for lsp:
Bundle list (just in case you want more details and a longer description :-) ):