You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an include_context call before my it statement that I want to retry, this include_context contains a before_all. When the test fails, the it-statement is reran, but the before_all inside the include_context is not. Also if there is a failure in the include_context, then the test is not reran at all. Here is an example
describe "Cool Operation", :retry => 10, :verbose_retry => true, do
include_context('cool setup - before all')
it 'does cool stuff' do
expect(@var_setup_in_before_all).to eq(CoolObject)
end
end
I have tried setting the :retry option on the 'it' statement and the 'describe' statement, but neither will retry the include_context. Does this gem support this feature?
The text was updated successfully, but these errors were encountered:
I think:
rspec_retry reruns the test as part of the suite so doesn't rerun before(:all) (it should rerun before(:each))
The logic to retry a whole context or describe block is something I haven't touched.
I have an include_context call before my it statement that I want to retry, this include_context contains a before_all. When the test fails, the it-statement is reran, but the before_all inside the include_context is not. Also if there is a failure in the include_context, then the test is not reran at all. Here is an example
I have tried setting the :retry option on the 'it' statement and the 'describe' statement, but neither will retry the include_context. Does this gem support this feature?
The text was updated successfully, but these errors were encountered: