Class: Minitest::Heat::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/minitest/heat/configuration.rb

Overview

For managing configuration options on how Minitest Heat should handle results

Constant Summary collapse

DEFAULTS =
{
  slow_threshold:           1.0,
  painfully_slow_threshold: 3.0
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



17
18
19
20
# File 'lib/minitest/heat/configuration.rb', line 17

def initialize
  @slow_threshold           = DEFAULTS[:slow_threshold]
  @painfully_slow_threshold = DEFAULTS[:painfully_slow_threshold]
end

Instance Attribute Details

#painfully_slow_thresholdObject

Returns the value of attribute painfully_slow_threshold.



14
15
16
# File 'lib/minitest/heat/configuration.rb', line 14

def painfully_slow_threshold
  @painfully_slow_threshold
end

#slow_thresholdObject

Returns the value of attribute slow_threshold.



14
15
16
# File 'lib/minitest/heat/configuration.rb', line 14

def slow_threshold
  @slow_threshold
end