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

Don't execute before(:all) on retry runs #101

Open
jkosir opened this issue Apr 9, 2019 · 1 comment
Open

Don't execute before(:all) on retry runs #101

jkosir opened this issue Apr 9, 2019 · 1 comment

Comments

@jkosir
Copy link

jkosir commented Apr 9, 2019

Is it possible to somehow not run before(:all) block (or access retry_count in it) on retry runs?

@michaelglass
Copy link
Contributor

Do you know if after(:all) is called? if not, you could do something like:

before(:all) do
  if @dont_rerun_before_all
    # ...
  @dont_rerun_before_all = true
end

after(:all) do
  @dont_rerun_before_all = false
end

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