[rspec-users] Slow Focus tags
rainer at incutio.com
Wed Jun 6 10:14:34 UTC 2012
[This is my third and final attempt to post to this group, first 2 were
with google groups]
I noticed that focusing a single spec takes ages to run. We commonly use
that, often in combination with guard to speed up our spec runs. I admit
that the overall performance of our specs is bad, since we ditched mocking
entirely and went with semi-integration specs on all levels. But this
practice has served us very well on picking up failures.
All runs on a single spec with focus: true that only tests (2 + 2).should
== 4, among 700 other specs.
Any ideas how to profile or even fix that?
# What I want to get:
$ time rspec spec/models/user_spec.rb:5
Finished in 1.41 seconds 1 example, 0 failures
# What I get using the focus tag:
$ time rake spec
Finished in 2.1 seconds 1 example, 0 failures
$time rspec spec
Finished in 1.39 seconds 1 example, 0 failures
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rspec-users