Class: Albacore::TestRunner::Task

Inherits:
Object
  • Object
show all
Includes:
Logging
Defined in:
lib/albacore/task_types/test_runner.rb

Instance Method Summary collapse

Methods included from Logging

#debug, #err, #error, #fatal, #info, #puts, #trace, #warn

Constructor Details

#initialize(opts) ⇒ Task

Returns a new instance of Task.



72
73
74
# File 'lib/albacore/task_types/test_runner.rb', line 72

def initialize opts
  @opts = opts
end

Instance Method Details

#executeObject

Raises:

  • (ArgumentError)


76
77
78
79
80
81
82
83
# File 'lib/albacore/task_types/test_runner.rb', line 76

def execute
  raise ArgumentError, 'missing :exe' unless @opts.get :exe
  raise ArgumentError, 'missing :files' unless @opts.get :files
  @opts.get(:files).each do |dll|
    raise ArgumentError, "could not find test dll '#{dll}' in dir #{FileUtils.pwd}" unless File.exists? dll
    execute_tests_for dll
  end
end