Faster RSpec with JRuby

纵然是瞬间 提交于 2019-12-12 07:46:19

问题


I'm pretty new to the whole JRuby world. I'm using RSpec on a pretty big test suite. I'd like to be able to run the specs frequently but the JVM takes so long to startup it's becoming a real time drain.

Is there a way to keep the JVM running? or a way to get specs to run faster with JRuby?


回答1:


There are two things you could look into:

  1. Run a nailgun server and send spec runs to it. jruby --ng-server & and then jruby --ng -S spec or jruby --ng -S rake

  2. Use spork. http://www.ruby-forum.com/topic/190163 I hear that Roger Pack has a version that may work with JRuby. http://github.com/rdp/spork



来源:https://stackoverflow.com/questions/2790458/faster-rspec-with-jruby

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!