Class: Nbuild::NUnitCmd

Inherits:
Cmd
  • Object
show all
Defined in:
lib/nbuild/nunit_cmd.rb

Instance Method Summary collapse

Methods inherited from Cmd

#execute, #execute_in

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

#commandObject



10
11
12
# File 'lib/nbuild/nunit_cmd.rb', line 10

def command
  "\"#{@path}\\nunit-console.exe\" #{@params[:test_assembly]}"
end