Module: RSpec::Ordering::Mttf
- Defined in:
- lib/rspec/ordering/mttf.rb,
lib/rspec/ordering/mttf/orderer.rb,
lib/rspec/ordering/mttf/version.rb,
lib/rspec/ordering/mttf/run_memory.rb,
lib/rspec/ordering/mttf/run_results.rb,
lib/rspec/ordering/mttf/example_result_data.rb
Defined Under Namespace
Classes: ExampleResultData, Orderer, RunMemory, RunResults
Constant Summary collapse
- VERSION =
"0.1.1"
Class Method Summary collapse
Class Method Details
.configure(config, current_date: Date.today, previous_run_data: ".rspec-run-data.store") ⇒ Object
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/rspec/ordering/mttf.rb', line 13 def self.configure(config, current_date: Date.today, previous_run_data: ".rspec-run-data.store") run_memory = RunMemory.new(previous_run_data) config.register_ordering(:global, Orderer.new(run_memory)) config.reporter.register_listener(run_memory, :example_group_finished) config.reporter.register_listener(run_memory, :stop) config.add_setting :current_date config.current_date = current_date end |