Class: Albacore::TestRunner::Config
- Inherits:
-
Object
- Object
- Albacore::TestRunner::Config
- Includes:
- CmdConfig
- Defined in:
- lib/albacore/task_types/test_runner.rb
Overview
the configuration object for the test runner
Instance Attribute Summary collapse
-
#files ⇒ Object
writeonly
give this property the list of dlls you want to test.
Instance Method Summary collapse
-
#copy_local ⇒ Object
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.
-
#initialize ⇒ Config
constructor
constructor, no parameters.
- #is_ms_test ⇒ Object
-
#native_exe ⇒ Object
Call this on the confiuguration if you don’t want ‘mono’ prefixed to the exe path on non-windows systems.
-
#opts ⇒ Object
Gets the configured options from the test runner configuration.
Methods included from CmdConfig
Methods included from ConfigDSL
#attr_path, #attr_path_accessor
Methods included from Logging
#debug, #err, #error, #fatal, #info, #puts, #trace, #warn
Constructor Details
#initialize ⇒ Config
constructor, no parameters
19 20 21 22 23 24 |
# File 'lib/albacore/task_types/test_runner.rb', line 19 def initialize @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
16 17 18 |
# File 'lib/albacore/task_types/test_runner.rb', line 16 def files=(value) @files = value end |
Instance Method Details
#copy_local ⇒ Object
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
41 42 43 |
# File 'lib/albacore/task_types/test_runner.rb', line 41 def copy_local @copy_local = true end |
#is_ms_test ⇒ Object
52 53 54 |
# File 'lib/albacore/task_types/test_runner.rb', line 52 def is_ms_test @is_ms_test = true end |
#native_exe ⇒ Object
Call this on the confiuguration if you don’t want ‘mono’ prefixed to the exe path on non-windows systems.
48 49 50 |
# File 'lib/albacore/task_types/test_runner.rb', line 48 def native_exe @clr_command = false end |
#opts ⇒ Object
Gets the configured options from the test runner configuration.
28 29 30 31 32 33 34 35 36 |
# File 'lib/albacore/task_types/test_runner.rb', line 28 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 |