Class: Albacore::TestRunner::Config
- Inherits:
-
Object
- Object
- Albacore::TestRunner::Config
- 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
-
#files ⇒ Object
writeonly
give this property the list of dlls you want to test.
-
#settings ⇒ Object
writeonly
give this property the settings file for the 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.
-
#execute_as_batch ⇒ Object
Will cause the executable to be run only once, testing all files as a batch.
-
#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 ConfigDSL
Methods included from CmdConfig
Methods included from Logging
#debug, #err, #error, #fatal, #info, #puts, #trace, #warn
Constructor Details
#initialize ⇒ Config
constructor, no parameters
24 25 26 27 28 29 30 31 |
# 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 @execute_as_batch = false @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_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
53 54 55 |
# File 'lib/albacore/task_types/test_runner.rb', line 53 def copy_local @copy_local = true end |
#execute_as_batch ⇒ Object
Will cause the executable to be run only once, testing all files as a batch.
69 70 71 |
# File 'lib/albacore/task_types/test_runner.rb', line 69 def execute_as_batch @execute_as_batch = true end |
#is_ms_test ⇒ Object
64 65 66 |
# File 'lib/albacore/task_types/test_runner.rb', line 64 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.
60 61 62 |
# File 'lib/albacore/task_types/test_runner.rb', line 60 def native_exe @clr_command = false end |
#opts ⇒ Object
Gets the configured options from the test runner configuration.
35 36 37 38 39 40 41 42 43 44 |
# File 'lib/albacore/task_types/test_runner.rb', line 35 def opts Map.new( :files => files, :copy_local => @copy_local, :is_ms_test => @is_ms_test, :exe => @exe, :parameters => @parameters, :clr_command => @clr_command, :execute_as_batch => @execute_as_batch) end |