class Greyatom::Test

Public Class Methods

new() click to toggle source
# File lib/greyatom/tests/runner.rb, line 7
def initialize()
  die if !strategy
end

Public Instance Methods

run() click to toggle source
# File lib/greyatom/tests/runner.rb, line 11
def run
  strategy.check_dependencies
  strategy.configure
  strategy.run
end
strategy() click to toggle source
# File lib/greyatom/tests/runner.rb, line 17
def strategy
  @strategy ||= strategies.map{ |s| s.new() }.detect(&:detect)
end

Private Instance Methods

die() click to toggle source
# File lib/greyatom/tests/runner.rb, line 29
def die
  puts "This directory doesn't appear to have any specs in it."
  exit
end
strategies() click to toggle source
# File lib/greyatom/tests/runner.rb, line 23
def strategies
  [
    Greyatom::Strategies::PythonUnittest
  ]
end