Sha256: 8f9ddd4177136076fcbdf203fb0539f731620d082dcbb5221c97f7b0ce52694c

Contents?: true

Size: 501 Bytes

Versions: 9

Compression:

Stored size: 501 Bytes

Contents

module Logirel::Tasks
  def nunit_task(nunit_exe_folder=nil, opts={})
    nunit_exe_folder = tuck_and_get :nunit_exe_folder, nunit_exe_folder

    append_to_file BUILD_FILE, <<-EOF, :verbose => false

desc "Run tests"
nunit #{ inject_task_name opts, 'nunit' }#{ inject_dependency opts } do |nunit|
  nunit.command = "#{ nunit_exe_folder || 'tools/nunit' }/nunit-console.exe"
  nunit.assemblies "#{ vars[:solution].find_project(:output=>'TEST_ASSEMBLY') { |p| p.test? }.output }"
end
    EOF
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
logirel-0.1.6 lib/logirel/tasks/nunit.rb
logirel-0.1.5 lib/logirel/tasks/nunit.rb
logirel-0.1.4 lib/logirel/tasks/nunit.rb
logirel-0.1.3 lib/logirel/tasks/nunit.rb
logirel-0.1.2 lib/logirel/tasks/nunit.rb
logirel-0.1.1 lib/logirel/tasks/nunit.rb
logirel-0.1.0 lib/logirel/tasks/nunit.rb
logirel-0.0.18 lib/logirel/tasks/nunit.rb
logirel-0.0.17 lib/logirel/tasks/nunit.rb