|
|
|
|
|
by JonnieCache
5147 days ago
|
|
>RSpec is DOG SLOW! I can run 100s of test in a couple of seconds. Can RSpec even startup in that time? Yes, of course it can. RSpec is not especially slow. Obviously the ruby interpreter can be slow, for any given rspec test you could write something faster in C or Java or Go or whatever. That's irrelevant. I'm guessing you're referring to rails tests, where the whole rails stack has to be loaded with each run of the test suite, something that is notoriously slow. There are strategies to avoid this. Also it is very easy for the naive rails developer to write tests with extremely inefficient usage of the database, which creates horrible bottlenecks. |
|