Module: TestRunner::Config

Extended by:
Logger::Logging, Config
Included in:
Config
Defined in:
lib/test_runner/config.rb

Defined Under Namespace

Classes: Option

Instance Attribute Summary collapse

Instance Attribute Details

#child_countObject


13
14
15
16
17
# File 'lib/test_runner/config.rb', line 13

def child_count
  Option::Number.evaluate @child_count do
    ENV.fetch "TEST_RUNNER_CHILD_COUNT", 1
  end
end

#fail_fastObject


19
20
21
22
23
# File 'lib/test_runner/config.rb', line 19

def fail_fast
  Option::Boolean.evaluate @fail_fast do
    ENV["TEST_RUNNER_FAIL_FAST"]
  end
end

#internal_loggerObject


25
26
27
28
29
30
31
# File 'lib/test_runner/config.rb', line 25

def internal_logger
  if ENV["TEST_RUNNER_INTERNAL_LOGGING"]
    logger
  else
    Logger::Logging::NullLogger
  end
end

#reverse_backtracesObject


33
34
35
36
37
# File 'lib/test_runner/config.rb', line 33

def reverse_backtraces
  Option::Boolean.evaluate @reverse_backtraces do
    ENV["TEST_RUNNER_REVERSE_BACKTRACES"]
  end
end

#trim_backtracesObject


39
40
41
42
43
# File 'lib/test_runner/config.rb', line 39

def trim_backtraces
  Option::Boolean.evaluate @trim_backtraces do
    ENV.fetch "TEST_RUNNER_TRIM_BACKTRACES", true
  end
end