Class: Albacore::TestRunner::Config

Inherits:
Object
  • Object
show all
Extended by:
ConfigDSL
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 ConfigDSL

attr_path, attr_path_accessor

Methods included from CmdConfig

#add_parameter, #parameters

Methods included from Logging

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

Constructor Details

#initializeConfig

constructor, no parameters



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

def initialize
  @parameters = Set.new
  @copy_local = false
  @is_ms_test = false
  @clr_command = true
  @files = []
end

Instance Attribute Details

#files=(value) ⇒ Object

give this property the list of dlls you want to test



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

def files=(value)
  @files = value
end

#settings=(value) ⇒ Object (writeonly)

give this property the settings file for the dlls you want to test



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

def settings=(value)
  @settings = 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



51
52
53
# File 'lib/albacore/task_types/test_runner.rb', line 51

def copy_local
  @copy_local = true
end

#is_ms_testObject



62
63
64
# File 'lib/albacore/task_types/test_runner.rb', line 62

def is_ms_test
  @is_ms_test = true
end

#native_exeObject

Call this on the confiuguration if you don’t want ‘mono’ prefixed to the exe path on non-windows systems.



58
59
60
# File 'lib/albacore/task_types/test_runner.rb', line 58

def native_exe
  @clr_command = false
end

#optsObject

Gets the configured options from the test runner configuration.



34
35
36
37
38
39
40
41
42
# File 'lib/albacore/task_types/test_runner.rb', line 34

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