You can use bundle exec rspec spec instead. If you use rake you end up loading the rails env twice. Also integrate spork that way the rails env will be preloaded. Run rspec with the -p option. This will give you a list of the 10 slowest tests so you can focus on making those ones faster.
Sent from my iPad On Jun 2, 2012, at 10:20 AM, Rainer Kuhn <[email protected]> wrote: > I have about 700 tests in my suite and have to admit not all of them are fast > and pretty. We ditched mocking entirely and rather test a bit more left and > right. This practice has served us well so far, except that of course the > speed of the suite is slow, which is not really a surprise. > > However we use focus tags a lot, sometimes in combination with guard. But > running rake spec / guard with only a single block focused takes ages to load > every time. I would expect it scanning for the tags and just loading that one > test. But it takes considerably longer than that. > > Any ideas how to profile / fix that? > > Ray > -- > You received this message because you are subscribed to the Google Groups > "rspec" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/rspec/-/8Ltr7F2oyiEJ. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/rspec?hl=en. -- You received this message because you are subscribed to the Google Groups "rspec" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rspec?hl=en.
