So my post did end up in here multiple times, very sorry for that. The cause of that particular error was a problem with the fixtures. (See other thread) I'm still trying to reproduce this in a simplified example.
rspec -p is a very cool function, I already use it a lot. Whereas spork is one of the most dreadful tools to me. I tried to setup spork about 10 times over the past 3 years. 3 tries this year alone. I always, ALWAYS end up with a longer runtime for my specs. Neither single specs are executed faster, nor the whole suite. I have tried so many suggestions on that. Spork works fine for empty projects, which the blog post examples always use. But for my real projects it just makes things worse. Either I'm too stupid or it's just not that good. On Monday, June 11, 2012 4:23:34 PM UTC+1, smasry wrote: > > 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 view this discussion on the web visit https://groups.google.com/d/msg/rspec/-/QRLN0Z3-0jkJ. 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.
