Class: Nbuild::MSTestCmd
Instance Method Summary collapse
- #command ⇒ Object
-
#initialize(params = {}) ⇒ MSTestCmd
constructor
A new instance of MSTestCmd.
Methods inherited from Cmd
Constructor Details
#initialize(params = {}) ⇒ MSTestCmd
Returns a new instance of MSTestCmd.
5 6 7 8 |
# File 'lib/nbuild/mstest_cmd.rb', line 5 def initialize params={} @path = ENV['MSTEST_HOME'] || 'C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE' @params = params end |
Instance Method Details
#command ⇒ Object
10 11 12 13 14 15 |
# File 'lib/nbuild/mstest_cmd.rb', line 10 def command = "/testmetadata:\"#{@params[:testmetadata ]}\"" if @params[:testmetadata ] testlist = "/testlist:\"#{@params[:testlist]}\"" if @params[:testlist] resultsfile = "/resultsfile:\"#{@params[:resultsfile]}\"" if @params[:resultsfile] "\"#{@path}\\mstest.exe\" #{} #{testlist} #{resultsfile}" end |