Strange time reporting

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 R. 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 :wink: “time rspec spec”
finishes in about 0.4s. Sorry…

On Dec 9, 2011, at 11:15 AM, Rodrigo Rosenfeld R.
[email protected] wrote:

Em 09-12-2011 15:14, Rodrigo Rosenfeld R. 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 :wink: “time rspec spec”
finishes in about 0.4s. Sorry…

“time rspec” actually does run specs as of 2.7

Em 09-12-2011 16:31, Rodrigo Rosenfeld R. 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.

On Fri, Dec 9, 2011 at 12:31 PM, Rodrigo Rosenfeld R.
[email protected] 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).

There is a temporary solution here:

https://github.com/guard/guard-rspec/issues/61

Em 09-12-2011 15:43, David C. 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…

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs