lib/tasks/tests.rake in newrelic_rpm-2.13.4 vs lib/tasks/tests.rake in newrelic_rpm-2.13.5.beta1
- old
+ new
@@ -1,6 +1,10 @@
# run unit tests for the NewRelic Agent
+begin
+ require 'rake/test_task'
+rescue LoadError => e
+end
if defined? Rake::TestTask
namespace :test do
AGENT_HOME = File.expand_path(File.join(File.dirname(__FILE__), "..",".."))
Rake::TestTask.new(:newrelic) do |t|
@@ -8,8 +12,8 @@
t.libs << "#{AGENT_HOME}/lib"
t.pattern = "#{AGENT_HOME}/test/**/*_test.rb"
t.verbose = true
end
Rake::Task['test:newrelic'].comment = "Run the unit tests for the Agent"
- task :default => :newrelic
+ task :newrelic => :environment
end
end