class TestProf::Configuration

TestProf configuration

Attributes

color[RW]
output[RW]
output_dir[RW]
report_suffix[RW]
timestamps[RW]

Public Class Methods

new() click to toggle source
# File lib/test_prof.rb, line 148
def initialize
  @output = $stdout
  @color = true
  @output_dir = "tmp/test_prof"
  @timestamps = false
  @report_suffix = ENV["TEST_PROF_REPORT"]
end

Public Instance Methods

color?() click to toggle source
# File lib/test_prof.rb, line 156
def color?
  color == true && output.is_a?(IO) && output.tty?
end
logger() click to toggle source
# File lib/test_prof.rb, line 164
def logger
  @logger ||= Logger.new(output, formatter: Logging::Formatter.new)
end
timestamps?() click to toggle source
# File lib/test_prof.rb, line 160
def timestamps?
  timestamps == true
end