Skip to content
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

Run Rspec Test on CodeLens is quite slow #2049

Closed
ryush00 opened this issue May 15, 2024 · 1 comment
Closed

Run Rspec Test on CodeLens is quite slow #2049

ryush00 opened this issue May 15, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@ryush00
Copy link

ryush00 commented May 15, 2024

Description

Running multiple examples are slow. It appears that it's running each example individually. Even they are same group, it was run individually.
(requiring a new ruby process to run and load rspec and my project code for each test!).

If I try Run In Terminal, it finished under one seconds.

Honeycam.2024-05-15.18-31-37.mp4

(Run)

Honeycam.2024-05-15.18-32-30.mp4

(Run In Terminal)

Reproduction steps

  1. Run multiple tests with Rspec.

Code snippet or error message

require 'rails_helper'

describe 'Should not slow' do
  it '1' do
    expect(true).to be true
  end
  it '2' do
    expect(true).to be true
  end
  it '3' do
    expect(true).to be true
  end
  it '4' do
    expect(true).to be true
  end
  it '5' do
    expect(true).to be true
  end
end

st0012/ruby-lsp-rspec#19

@ryush00 ryush00 added the bug Something isn't working label May 15, 2024
@ryush00 ryush00 changed the title Rspec Run Test on Test Explorer is quite slow Run Rspec Test on Test Explorer is quite slow May 15, 2024
@ryush00 ryush00 changed the title Run Rspec Test on Test Explorer is quite slow Run Rspec Test on Code lens is quite slow May 15, 2024
@ryush00 ryush00 changed the title Run Rspec Test on Code lens is quite slow Run Rspec Test on CodeLens is quite slow May 15, 2024
@andyw8
Copy link
Contributor

andyw8 commented May 15, 2024

RSpec is handled by an addon, please create an issue there, thanks:

https://github.com/st0012/ruby-lsp-rspec

@andyw8 andyw8 closed this as completed May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants