Class: CucumberTimingPresenter::StepTimesOfWholeHtmlPresenter
- Inherits:
-
UsageRecordHtmlPresenter
- Object
- UsageRecordHtmlPresenter
- CucumberTimingPresenter::StepTimesOfWholeHtmlPresenter
- Defined in:
- lib/cucumber_timing_presenter/step_times_of_whole_html_presenter.rb
Instance Method Summary collapse
- #generate_html(usage) ⇒ Object
-
#initialize(usage_record) ⇒ StepTimesOfWholeHtmlPresenter
constructor
A new instance of StepTimesOfWholeHtmlPresenter.
Methods inherited from UsageRecordHtmlPresenter
#format_all, #format_unused_steps, #format_usage
Constructor Details
#initialize(usage_record) ⇒ StepTimesOfWholeHtmlPresenter
Returns a new instance of StepTimesOfWholeHtmlPresenter.
3 4 5 |
# File 'lib/cucumber_timing_presenter/step_times_of_whole_html_presenter.rb', line 3 def initialize usage_record generate_html usage_record end |
Instance Method Details
#generate_html(usage) ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/cucumber_timing_presenter/step_times_of_whole_html_presenter.rb', line 7 def generate_html usage html = HtmlTemplate.new Configuration.step_times_of_whole html.replace "PP_STEP_TOTAL_TIMES_PLOT_DATA", usage.step_part_of_total.join(',') html.replace "PP_TOTAL_ELAPSED_TIME", usage.total_elapsed_time / 60 html.output "step_times_of_whole.html" end |