Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatible with simplecov: does not find a rspec.failures file #4

Open
jmuheim opened this issue Feb 6, 2013 · 6 comments
Open

Comments

@jmuheim
Copy link

jmuheim commented Feb 6, 2013

I have installed rspec-rerun as told by the README, but it doesn't seem to work.

I've run rake which runs all tests, and they all passed. But then it seems to hang itself, only a Ctrl-C brings me back to the console. Take a look at the output, it seems to have problems finding an rspec.failures file. This should be generated automatically, right?

# ...
# some more rspec output before this...

Pending:
  TimeRecord#duration passing a string as started_at/finished_at invalid date string does not accept it
    # Not working with MongoDB/Mongoid/validates_timeliness 3 yet
    # ./spec/models/time_record_spec.rb:106
  Vertical Menu links to calendar
    # Kalender ist zur Zeit nicht aktiv
    # ./spec/requests/menu/vertical_menu_spec.rb:34
  TimeRecordManagement#edit doesn't edit a time record when dates are wrong
    # Not working with MongoDB/Mongoid/validates_timeliness 3 yet
    # ./spec/requests/users/manage_own_timerecords_spec.rb:79

Finished in 3 minutes 54.27 seconds
880 examples, 0 failures, 3 pending
Coverage report generated for RSpec to /Users/josh/Documents/Work/Sientia/iq/coverage. 2195 / 2368 LOC (92.69%) covered.
Rack::File headers parameter replaces cache_control after Rack 1.5.
^C
Exiting... Interrupt again to exit immediately.
^C
Exiting... Interrupt again to exit immediately.
Coverage report generated for RSpec to /Users/josh/Documents/Work/Sientia/iq/coverage. 1716 / 2215 LOC (77.47%) covered.
rake aborted!
No such file or directory - rspec.failures
/Users/josh/.rvm/gems/ruby-1.9.3-p327@iq/gems/rspec-rerun-0.1.1/lib/tasks/rspec.rake:31:in `read'
/Users/josh/.rvm/gems/ruby-1.9.3-p327@iq/gems/rspec-rerun-0.1.1/lib/tasks/rspec.rake:31:in `block in <top (required)>'
/Users/josh/.rvm/gems/ruby-1.9.3-p327@global/bin/ruby_noexec_wrapper:14:in `eval'
/Users/josh/.rvm/gems/ruby-1.9.3-p327@global/bin/ruby_noexec_wrapper:14:in `<main>'
Tasks: TOP => default => rspec-rerun:spec
(See full trace by running task with --trace)
@jmuheim
Copy link
Author

jmuheim commented Feb 6, 2013

I tried creating my own rspec.failures file but this didn't seem to do anything either.

Is this gem still supported and expected to work? Would be nice to use it, but didn't work at all for me.

@dblock
Copy link
Owner

dblock commented Feb 6, 2013

It looks like it tried to rerun a set of specs that have not failed, which probably means that your RSpec didn't return the correct return code. Which version of RSpec are you running? Also try disable coverage, that might be the culprit.

Do run rake with --trace so we can see where the error came from.

@jmuheim
Copy link
Author

jmuheim commented Feb 6, 2013

The problem was caused by simplecov. I removed it, now it's working. Thanks!

@jmuheim jmuheim closed this as completed Feb 6, 2013
@ghost
Copy link

ghost commented Jun 19, 2014

removing simplecov is not an option for me, is there another workaround for this?

@dblock
Copy link
Owner

dblock commented Jun 20, 2014

I'm reopening this since it looks like this gem is not compatible with simplecov. I'd welcome a small repro and then we can work on a fix.

@dblock dblock reopened this Jun 20, 2014
@dblock dblock changed the title Does not find a rspec.failures file Incompatible with simplecov: does not find a rspec.failures file Jun 20, 2014
@ghost
Copy link

ghost commented Jun 23, 2014

My issue may have been related to simplecov-ruby/simplecov#281, I downgraded simplecov and rspec-rerun seems to be working now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants