Module: TestProf::TagProf::Printers::HTML

Extended by:
Logging
Defined in:
lib/test_prof/tag_prof/printers/html.rb

Overview

:nodoc: all

Constant Summary collapse

TEMPLATE =
"tagprof.template.html"
OUTPUT_NAME =
"tag-prof.html"

Constants included from Logging

Logging::COLORS

Class Method Summary collapse

Methods included from Logging

build_log_msg, colorize, log

Class Method Details

.dump(result) ⇒ Object



12
13
14
15
16
17
18
19
20
# File 'lib/test_prof/tag_prof/printers/html.rb', line 12

def dump(result)
  path = TestProf::Utils::HTMLBuilder.generate(
    data: result,
    template: TEMPLATE,
    output: OUTPUT_NAME
  )

  log :info, "TagProf report generated: #{path}"
end