开发者

Faster RSpec with JRuby

开发者 https://www.devze.com 2022-12-30 01:41 出处:网络
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

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 w开发者_如何学Cay to keep the JVM running? or a way to get specs to run faster with JRuby?


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

0

精彩评论

暂无评论...
验证码 换一张
取 消