lib/tasks/tests.rake in wd_newrelic_rpm-3.3.4.1 vs lib/tasks/tests.rake in wd_newrelic_rpm-3.5.5

- old
+ new

@@ -1,19 +1,17 @@ -# run unit tests for the NewRelic Agent begin - require 'rake/test_task' + require 'rake/testtask' rescue LoadError => e end if defined? Rake::TestTask namespace :test do - AGENT_HOME = File.expand_path(File.join(File.dirname(__FILE__), "..","..")) + agent_home = File.expand_path(File.join(File.dirname(__FILE__),'..','..')) + Rake::TestTask.new(:newrelic) do |t| - t.libs << "#{AGENT_HOME}/test" - t.libs << "#{AGENT_HOME}/lib" - t.pattern = "#{AGENT_HOME}/test/**/*_test.rb" + t.libs << "#{agent_home}/test" + t.libs << "#{agent_home}/lib" + t.pattern = "#{agent_home}/test/new_relic/**/*_test.rb" t.verbose = true end - Rake::Task['test:newrelic'].comment = "Run the unit tests for the Agent" - task :newrelic => :environment end end