Using Spring, Rspec, and RubyMine

Spring & rspec don’t mix with rubymine: http://barbarian.engineer/2015/02/08/spring-rspec3-rubymine/ https://youtrack.jetbrains.com/issue/RUBY-16730

I’m usually running tests at command line now :frowning:

Supposedly, there is a way around this…

Anybody have simple steps?

I found that if I use my pgkk shell function, and kill all spring instances, and then run a test in RubyMine, starting Spring, and then run whatever shell stuff in the console, all is fine with running tests from RubyMine that leverage Spring!

pgkk:

That was my experience as well (I put my findings in the blog article you linked earlier). Whenever it’s complaining about the Teamcity formatter, it means it’s talking to a Rspec process that wasn’t launched from RubyMine - and Spring is generally the culprit. Find and kill any Spring processes, then press “run test” again.