Why is RSpec so slow under Rails?

前端 未结 11 597
无人共我
无人共我 2020-12-24 05:00

Whenever I run rspec tests for my Rails application it takes forever and a day of overhead before it actually starts running tests. Why is rspec so slow? Is there a way to

11条回答
  •  没有蜡笔的小新
    2020-12-24 05:49

    The main reason is that require takes forever on windows, for some reason.

    Tips for speedup: spork now works with windows, I believe.

    You can try "faster_require" which caches locations:

    http://github.com/rdp/faster_require

    GL. -rp

提交回复
热议问题