Module: RspecSprint::Diagnosis
- Defined in:
- lib/rspec_sprint/diagnosis.rb
Overview
Pure pipeline: profiler JSON files -> normalized snapshot -> ranked findings -> rendered report. Decoupled from how the JSON was produced (a live run, a fixture, or a CI artifact), per design D3.
Class Method Summary collapse
Class Method Details
.from_files(rspec_json:, factory_prof_json: nil) ⇒ Object
14 15 16 17 |
# File 'lib/rspec_sprint/diagnosis.rb', line 14 def from_files(rspec_json:, factory_prof_json: nil) snapshot = Normalizer.new(rspec_json: rspec_json, factory_prof_json: factory_prof_json).call Formatter.format(Ranker.call(snapshot)) end |