Class: RSpec::Core::ExampleStatusMerger

Inherits:
Object
  • Object
show all
Defined in:
lib/rspec/core/example_status_persister.rb

Overview

Merges together a list of example statuses from this run and a list from previous runs (presumably loaded from disk). Each example status object is expected to be a hash with at least an :example_id and a :status key. Examples that were loaded but not executed (due to filtering, --fail-fast or whatever) should have a :status of UNKNOWN_STATUS.

This will produce a new list that:

  • Will be missing examples from previous runs that we know for sure no longer exist.
  • Will have the latest known status for any examples that either definitively do exist or may still exist.
  • Is sorted by file name and example definition order, so that the saved file is easily scannable if users want to inspect it.