Class: Nbuild::NCoverCmd

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

Instance Method Summary collapse

Methods inherited from Cmd

#execute, #execute_in

Constructor Details

#initialize(params = {}) ⇒ NCoverCmd

Returns a new instance of NCoverCmd.



5
6
7
8
# File 'lib/nbuild/ncover_cmd.rb', line 5

def initialize params={}
  @path = ENV['NCOVER_HOME'] || 'C:\Program Files\NCover'
  @params = params
end

Instance Method Details

#commandObject



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

def command
  "\"#{@path}\\ncover.console.exe\" //h CoverageReport //pm vstesthost.exe #{@params[:cmd].command}"
end