Class: Albacore::TestRunner::Config

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

Overview

the configuration object for the test runner

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from CmdConfig

#add_parameter, #parameters

Methods included from ConfigDSL

#attr_path, #attr_path_accessor

Methods included from Logging

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

Constructor Details

#initializeConfig

constructor, no parameters



19
20
21
22
# File 'lib/albacore/task_types/test_runner.rb', line 19

def initialize
  @copy_local = false
  @files = []
end

Instance Attribute Details

#files=(value) ⇒ Object

give this property the list of dlls you want to test



16
17
18
# File 'lib/albacore/task_types/test_runner.rb', line 16

def files=(value)
  @files = value
end

Instance Method Details

#copy_localObject

mark that it should be possible to copy the test files local – this is great if you are running a VM and the host disk is mapped as a network drive, which crashes some test runners



36
37
38
# File 'lib/albacore/task_types/test_runner.rb', line 36

def copy_local
  @copy_local = true
end

#optsObject

gets the configured options



25
26
27
28
29
30
31
# File 'lib/albacore/task_types/test_runner.rb', line 25

def opts
  Map.new(
    :files      => files,
    :copy_local => @copy_local,
    :exe        => @exe,
    :parameters => @parameters)
end