Class: AlpacaBuildTool::NUnit

Inherits:
Tool
  • Object
show all
Defined in:
lib/alpacabuildtool/tools/nunit.rb

Overview

NUnit provides access to nunit-console.exe tool

Instance Attribute Summary

Attributes included from Log

#log

Instance Method Summary collapse

Methods inherited from Tool

#call, #initialize

Constructor Details

This class inherits a constructor from AlpacaBuildTool::Tool

Instance Method Details

#test(project, debug) ⇒ Object

Runs tests from project

project

project file with absolute path

debug

set to run test with debug configuration


13
14
15
16
17
18
19
# File 'lib/alpacabuildtool/tools/nunit.rb', line 13

def test(project, debug)
  options = @configuration['options']
  options['config'] = 'Debug' if debug
  FileUtils.makedirs options['work'] if options['work']
  FileUtils.makedirs File.dirname(options['output']) if options['output']
  call([options, project])
end