-
-
Notifications
You must be signed in to change notification settings - Fork 760
Rspec don't exit by itself if specs passed #1918
Comments
Thanks for putting together such a great repro! That's definitely helpful. The fact that RSpec does not call https://gist.github.com/myronmarston/9ff026166f30a55ba46c Basically, the issue is that other things (such as simplecov) may also call For your specific repro case, I managed to get it pared down to something even more minimal: # rspec_exit_spec.rb
Dir.glob('lib/*.jar').each { |j| $CLASSPATH << j }
class Command < com.netflix.hystrix.HystrixCommand
def initialize
key = com.netflix.hystrix.HystrixCommandGroupKey::Factory.asKey('default')
super(key)
end
end
describe 'NoExit' do
specify do
Command.new.toObservable.toBlocking.toFuture
expect(true).to eq(true)
end
end
describe 'Exit' do
specify do
Command.new.toObservable.toBlocking.toFuture
expect(false).to be(true)
end
end The issue still happens with this, so this helps show that it's isolated to Closing since I don't believe this is an RSpec bug. Good luck! |
@myronmarston thank you for the explanation |
just FYI, this Netflix/Hystrix#760 was the issue. |
I've found very strange issue:
If some of specs fails rspec successfully exit:
If all specs passed it won't exit until I interrupt it manually by
Ctrl-C Ctrl-C
.I've fixed it in non-obvious manner:
but I'm not sure that this is rspec problem at all.
Demo: https://github.com/etehtsea/rspec-exit-issue
The text was updated successfully, but these errors were encountered: