-
Notifications
You must be signed in to change notification settings - Fork 156
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
Running rails tests in the vscode test explorer is quite slow #2402
Comments
Hi @andypeters, this is a known limitation, there is some work happening here to try improve it: (I moved the issue to |
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. |
This issue is being marked as stale because there was no activity in the last 2 months |
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: #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 :-) ):
The text was updated successfully, but these errors were encountered: