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

Add callback for intermittent tests #122

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

santib
Copy link

@santib santib commented Jan 19, 2022

Hi, I'm opening the PR just in case you are interested in having a mechanism to notify about intermittent tests. What this code does is call the RSpec.configuration.intermittent_callback callback if a test passes while retrying it. That way, we can keep a list of the intermittent tests in the project and fix them.

Example callback:

  config.intermittent_callback = proc do |ex|
    Slack::Reporter.new(ex).post_to_channel
  end

@santib
Copy link
Author

santib commented Sep 27, 2023

any update on this @rekahsoft ?

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

Successfully merging this pull request may close these issues.

2 participants