class Fried::Test::CLI

Attributes

autorun[RW]
get_options[RW]
load_plugins[RW]
load_test_files[RW]
load_tests_path[RW]

Public Class Methods

build() click to toggle source
# File lib/fried/test/cli.rb, line 24
def self.build
  new.tap do |instance|
    instance.load_tests_path = LoadTestsPath.build
    instance.load_test_files = LoadTestFiles.build
    instance.load_plugins = LoadPlugins.build
    instance.autorun = Autorun.build
    instance.get_options = GetOptions.build
  end
end
call(argv = ARGV) click to toggle source
# File lib/fried/test/cli.rb, line 42
def self.call(argv = ARGV)
  instance = build
  instance.(argv)
end
new() click to toggle source
# File lib/fried/test/cli.rb, line 16
def initialize
  @load_tests_path = LoadTestsPath.new
  @load_test_files = LoadTestFiles.new
  @load_plugins = LoadPlugins.new
  @autorun = Autorun.new
  @get_options = GetOptions.new
end

Public Instance Methods

call(argv = ARGV) click to toggle source
# File lib/fried/test/cli.rb, line 34
def call(argv = ARGV)
  load_plugins.()
  options = get_options.(argv)
  load_tests_path.()
  load_test_files.(options)
  autorun.()
end