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.



83
84
85
# File 'lib/albacore/task_types/test_runner.rb', line 83

def initialize opts
  @opts = opts
end

Instance Method Details

#executeObject

Raises:

  • (ArgumentError)


87
88
89
90
91
92
93
94
# File 'lib/albacore/task_types/test_runner.rb', line 87

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