Forum: RSpec Strange time reporting

Posted by Rodrigo Rosenfeld Rosas (Guest)
on 2011-12-09 18:49
(Received via mailing list)
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.
Posted by Rodrigo Rosenfeld Rosas (Guest)
on 2011-12-09 18:52
(Received via mailing list)
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...
Posted by David Chelimsky (Guest)
on 2011-12-09 19:21
(Received via mailing list)
On Dec 9, 2011, at 11:15 AM, Rodrigo Rosenfeld Rosas 
<lbocseg@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
Posted by Rodrigo Rosenfeld Rosas (Guest)
on 2011-12-09 19:58
(Received via mailing list)
Em 09-12-2011 15:43, David Chelimsky escreveu:
> "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...
Posted by Rodrigo Rosenfeld Rosas (Guest)
on 2011-12-09 21:11
(Received via mailing list)
Em 09-12-2011 16:31, Rodrigo Rosenfeld Rosas escreveu:
>>>> 10 examples, 0 failures
> 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.
Posted by David Chelimsky (Guest)
on 2011-12-09 22:19
(Received via mailing list)
On Fri, Dec 9, 2011 at 12:31 PM, Rodrigo Rosenfeld Rosas
<lbocseg@yahoo.com.br> wrote:
>>>> Finished in 731.67 seconds
>
> I'm using 2.7.1

I mis-spoke - it's 2.8 (which is out as an rc: 2.8.0.rc1).
Posted by Jaime Bellmyer (bellmyer)
on 2011-12-15 16:37
There is a temporary solution here:

https://github.com/guard/guard-rspec/issues/61
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.