While running some specs of a new fresh Rails 3.1 project with latest Rspec, I''m getting some strange time reporting (using --drb and spork): Finished in 731.67 seconds 10 examples, 0 failures But it actually run "time rake" in less than 2s. "time rspec" runs in about 0.2s. The finished time is always increasing. How do I reset the time on each run with Spork? Yes, I know it is more likely to be a Spork-specific issue, but maybe there are other Rspec users here using Spork that have already some solution to this. Cheers, Rodrigo.
Em 09-12-2011 15:14, Rodrigo Rosenfeld Rosas escreveu:> While running some specs of a new fresh Rails 3.1 project with latest > Rspec, I''m getting some strange time reporting (using --drb and spork): > > Finished in 731.67 seconds > 10 examples, 0 failures > > But it actually run "time rake" in less than 2s. "time rspec" runs in > about 0.2s.Yeah, but "time rspec" doesn''t run any specs at all ;) "time rspec spec" finishes in about 0.4s. Sorry...
On Dec 9, 2011, at 11:15 AM, Rodrigo Rosenfeld Rosas <lbocseg at yahoo.com.br> wrote:> Em 09-12-2011 15:14, Rodrigo Rosenfeld Rosas escreveu: >> While running some specs of a new fresh Rails 3.1 project with latest Rspec, I''m getting some strange time reporting (using --drb and spork): >> >> Finished in 731.67 seconds >> 10 examples, 0 failures >> >> But it actually run "time rake" in less than 2s. "time rspec" runs in about 0.2s. > > Yeah, but "time rspec" doesn''t run any specs at all ;) "time rspec spec" finishes in about 0.4s. Sorry..."time rspec" actually does run specs as of 2.7
Em 09-12-2011 15:43, David Chelimsky escreveu:> On Dec 9, 2011, at 11:15 AM, Rodrigo Rosenfeld Rosas<lbocseg at yahoo.com.br> wrote: > >> Em 09-12-2011 15:14, Rodrigo Rosenfeld Rosas escreveu: >>> While running some specs of a new fresh Rails 3.1 project with latest Rspec, I''m getting some strange time reporting (using --drb and spork): >>> >>> Finished in 731.67 seconds >>> 10 examples, 0 failures >>> >>> But it actually run "time rake" in less than 2s. "time rspec" runs in about 0.2s. >> Yeah, but "time rspec" doesn''t run any specs at all ;) "time rspec spec" finishes in about 0.4s. Sorry... > "time rspec" actually does run specs as of 2.7I''m using 2.7.1 here and the result of runnin rspec without specifying the spec folder is: No examples found. Finished in 5863.55 seconds 0 examples, 0 failures Ignore the strange time since this is some issue with Spork that I still don''t know how to fix...
Em 09-12-2011 16:31, Rodrigo Rosenfeld Rosas escreveu:> Em 09-12-2011 15:43, David Chelimsky escreveu: >> On Dec 9, 2011, at 11:15 AM, Rodrigo Rosenfeld >> Rosas<lbocseg at yahoo.com.br> wrote: >> >>> Em 09-12-2011 15:14, Rodrigo Rosenfeld Rosas escreveu: >>>> While running some specs of a new fresh Rails 3.1 project with >>>> latest Rspec, I''m getting some strange time reporting (using --drb >>>> and spork): >>>> >>>> Finished in 731.67 seconds >>>> 10 examples, 0 failures >>>> >>>> But it actually run "time rake" in less than 2s. "time rspec" runs >>>> in about 0.2s. >>> Yeah, but "time rspec" doesn''t run any specs at all ;) "time rspec >>> spec" finishes in about 0.4s. Sorry... >> "time rspec" actually does run specs as of 2.7 > > I''m using 2.7.1 here and the result of runnin rspec without specifying > the spec folder is: > > No examples found. > > > Finished in 5863.55 seconds > 0 examples, 0 failures > > Ignore the strange time since this is some issue with Spork that I > still don''t know how to fix...Actually, it runs the specs unless --drb is specified in .rspec.
On Fri, Dec 9, 2011 at 12:31 PM, Rodrigo Rosenfeld Rosas <lbocseg at yahoo.com.br> wrote:> Em 09-12-2011 15:43, David Chelimsky escreveu: > >> On Dec 9, 2011, at 11:15 AM, Rodrigo Rosenfeld Rosas<lbocseg at yahoo.com.br> >> ?wrote: >> >>> Em 09-12-2011 15:14, Rodrigo Rosenfeld Rosas escreveu: >>>> >>>> While running some specs of a new fresh Rails 3.1 project with latest >>>> Rspec, I''m getting some strange time reporting (using --drb and spork): >>>> >>>> Finished in 731.67 seconds >>>> 10 examples, 0 failures >>>> >>>> But it actually run "time rake" in less than 2s. "time rspec" runs in >>>> about 0.2s. >>> >>> Yeah, but "time rspec" doesn''t run any specs at all ;) "time rspec spec" >>> finishes in about 0.4s. Sorry... >> >> "time rspec" actually does run specs as of 2.7 > > > I''m using 2.7.1I mis-spoke - it''s 2.8 (which is out as an rc: 2.8.0.rc1).> here and the result of runnin rspec without specifying the > spec folder is: > > No examples found. > > > Finished in 5863.55 seconds > 0 examples, 0 failures > > Ignore the strange time since this is some issue with Spork that I still > don''t know how to fix... > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users
Just to add some helpful info to this post, I noticed the time given is the total time since spork was fired up. So fire up spork, wait 10 minutes, and your tests will say they took 10 minutes to run. I just thought I''d offer this in case it gets anyone closer to a solution. -- Posted via http://www.ruby-forum.com/.