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.
-
#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 |
# File 'lib/albacore/task_types/test_runner.rb', line 19 def initialize @copy_local = 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
39 40 41 |
# File 'lib/albacore/task_types/test_runner.rb', line 39 def copy_local @copy_local = 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.
46 47 48 |
# File 'lib/albacore/task_types/test_runner.rb', line 46 def native_exe @clr_command = false end |
#opts ⇒ Object
Gets the configured options from the test runner configuration.
27 28 29 30 31 32 33 34 |
# File 'lib/albacore/task_types/test_runner.rb', line 27 def opts Map.new( :files => files, :copy_local => @copy_local, :exe => @exe, :parameters => @parameters, :clr_command => @clr_command) end |