weizheheng / ror.nvim

Have FUN builiding Ruby on Rails applications with Neovim!
MIT License
119 stars 12 forks source link

RSpec coverage and Spring #23

Open borisrorsvort opened 1 year ago

borisrorsvort commented 1 year ago

It seems that simplecov kinda completely fails to generate coverage when spring is running. Many people suggested to run DISABLE_SPRING=1 rspec or to set it in your .zshrc Is there a way we could pass DISABLE_SPRING when running ror.test so we get the updated coverage?

weizheheng commented 1 year ago

@borisrorsvort Can you give me more context on how simplecov fails to generate the coverage? In one of my project, I am using spring, rspec and simplecov and the coverage seems to generate just fine in that project.

borisrorsvort commented 1 year ago

Sometimes depends on your version of rails as well, sometimes it’s when you have parallel test activated,… But as a general thing, it would be nice to be able to overwrite the test command you use to run test in our config 👍