Class: Nbuild::NUnitCmd
Instance Method Summary collapse
- #command ⇒ Object
-
#initialize(params = {}) ⇒ NUnitCmd
constructor
A new instance of NUnitCmd.
Methods inherited from Cmd
Constructor Details
#initialize(params = {}) ⇒ NUnitCmd
Returns a new instance of NUnitCmd.
5 6 7 8 |
# File 'lib/nbuild/nunit_cmd.rb', line 5 def initialize params={} @path = ENV['NUNIT_HOME'] || 'C:\Program Files\NUnit\bin' @params = params end |
Instance Method Details
#command ⇒ Object
10 11 12 |
# File 'lib/nbuild/nunit_cmd.rb', line 10 def command "\"#{@path}\\nunit-console.exe\" #{@params[:test_assembly]}" end |