lib/rspec_flaky/listener.rb
# - suite_flaky_examples: contains all the currently tracked flacky example
#   for the whole RSpec suite
# - flaky_examples: contains the examples detected as flaky during the
#   current RSpec run
contains all the currently tracked flacky example
for the whole RSpec suite
flaky_examples: contains the examples detected as flaky during the
current RSpec run
contains all the currently tracked flacky example for the whole RSpec suite flaky_examples : contains the examples detected as flaky during the current RSpec run
def example_passed(notification)
      current_example = RspecFlaky::Example.new(notification.example)
      return unless current_example.attempts > 1
      flaky_example = suite_flaky_examples.fetch(current_example.uid) { FlakyExample.new(current_example) }
      flaky_example.update_flakiness!(last_attempts_count: current_example.attempts)
      flaky_examples[current_example.uid] = flaky_example
    end
def example_passed ( notification ) current_example = RspecFlaky :: Example . new ( notification . example ) return unless current_example . attempts > 1 flaky_example = suite_flaky_examples . fetch ( current_example . uid ) { FlakyExample . new ( current_example ) } flaky_example . update_flakiness! ( last_attempts_count : current_example . attempts ) flaky_examples [ current_example . uid ] = flaky_example end
suite_flaky_examples: contains all the currently tracked flacky example
for the whole RSpec suite
 flaky_examples: contains the examples detected as flaky during the
current RSpec run
suite_flaky_examples : contains all the currently tracked flacky example for the whole RSpec suite flaky_examples : contains the examples detected as flaky during the current RSpec run
notification