Sha256: ea74d2f4a2a480150184abad7e62dc7bea6cf168e2df4ade0bd49c039fc0c060
Contents?: true
Size: 819 Bytes
Versions: 1
Compression:
Stored size: 819 Bytes
Contents
require 'fileutils' require 'alpacabuildtool/tools/tool' module AlpacaBuildTool ## # NUnit provides access to nunit-console.exe tool class NUnit < Tool ## # Runs tests from project # # +project+:: project file with absolute path # +debug+:: set to run test with debug configuration 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 private def format_option(name, value, switch) name = (name.to_s.length == 1 ? '-' : '--') + name.to_s switch ? name : "#{name} #{encapsulate(value)}" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
alpacabuildtool-1.0.0 | lib/alpacabuildtool/tools/nunit.rb |