Skip to content
This repository was archived by the owner on Jul 7, 2025. It is now read-only.

Comments

Add callback for intermittent tests#122

Open
santib wants to merge 1 commit intoNoRedInk:masterfrom
emeritus-tech:add-intermittent-test-callback
Open

Add callback for intermittent tests#122
santib wants to merge 1 commit intoNoRedInk:masterfrom
emeritus-tech:add-intermittent-test-callback

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants