lib/rspec_flaky/listener.rb
def dump_summary(_)
      write_report_file(flaky_examples, RspecFlaky::Config.flaky_examples_report_path)

      new_flaky_examples = flaky_examples - suite_flaky_examples
      if new_flaky_examples.any?
        Rails.logger.warn "\nNew flaky examples detected:\n"
        Rails.logger.warn JSON.pretty_generate(new_flaky_examples.to_report)

        write_report_file(new_flaky_examples, RspecFlaky::Config.new_flaky_examples_report_path)
      end
    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
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 dump_summary(_)
      write_report_file(flaky_examples, RspecFlaky::Config.flaky_examples_report_path)
      new_flaky_examples = flaky_examples - suite_flaky_examples
      if new_flaky_examples.any?
        Rails.logger.warn "\nNew flaky examples detected:\n"
        Rails.logger.warn JSON.pretty_generate(new_flaky_examples.to_report)
        write_report_file(new_flaky_examples, RspecFlaky::Config.new_flaky_examples_report_path)
      end
    end
def dump_summary ( _ ) write_report_file ( flaky_examples , RspecFlaky :: Config . flaky_examples_report_path ) new_flaky_examples = flaky_examples - suite_flaky_examples if new_flaky_examples . any? Rails . logger . warn "\nNew flaky examples detected:\n" Rails . logger . warn JSON . pretty_generate ( new_flaky_examples . to_report ) write_report_file ( new_flaky_examples , RspecFlaky :: Config . new_flaky_examples_report_path ) end 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
_