Sha256: 551e6f9695dd4155cbe57ae44a582f8457eb112b6ff6202fe6c50bebcdc155af
Contents?: true
Size: 889 Bytes
Versions: 2
Compression:
Stored size: 889 Bytes
Contents
require "albacore/albacoretask" require "albacore/config/nunitconfig" class NUnit TaskName = :nunit include Albacore::Task include Albacore::RunCommand include Configuration::NUnit attr_reader :no_logo attr_accessor :results_path attr_array :assemblies def initialize() super() update_attributes(nunit.to_hash) end def execute() result = run_command("nunit", build_parameters) fail_with_message("NUnit failed, see the build log for more details.") unless result end def build_parameters p = [] p << @assemblies.map{ |asm| "\"#{asm}\"" } if @assemblies p << "/xml=\"#{@results_path}\"" if @results_path p << "/nologo" if @no_logo p end def no_logo @no_logo = true end def build_command_line c = [] c << @command c << build_parameters c << @parameters c end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
albacore-1.0.0 | lib/albacore/nunit.rb |
albacore-1.0.0.rc.3 | lib/albacore/nunit.rb |