Class: Albacore::TestRunner::Task
- Inherits:
-
Object
- Object
- Albacore::TestRunner::Task
- Includes:
- Logging
- Defined in:
- lib/albacore/task_types/test_runner.rb
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(opts) ⇒ Task
constructor
A new instance of Task.
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
#execute ⇒ Object
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 |