deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject [18/50] [abbrv] git commit: Core: Added EC2 frontend test rake task
Date Mon, 30 Jul 2012 14:29:17 GMT
Core: Added EC2 frontend test rake task


Project: http://git-wip-us.apache.org/repos/asf/deltacloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltacloud/commit/bf3a2f4d
Tree: http://git-wip-us.apache.org/repos/asf/deltacloud/tree/bf3a2f4d
Diff: http://git-wip-us.apache.org/repos/asf/deltacloud/diff/bf3a2f4d

Branch: refs/heads/master
Commit: bf3a2f4d61a06949428fcad18e2bd93bb1af3d88
Parents: 1103441
Author: Michal Fojtik <mfojtik@redhat.com>
Authored: Fri Jul 27 14:24:43 2012 +0200
Committer: Michal fojtik <mfojtik@redhat.com>
Committed: Fri Jul 27 14:24:57 2012 +0200

----------------------------------------------------------------------
 server/Rakefile |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/bf3a2f4d/server/Rakefile
----------------------------------------------------------------------
diff --git a/server/Rakefile b/server/Rakefile
index 4bd3b01..80589c4 100644
--- a/server/Rakefile
+++ b/server/Rakefile
@@ -124,6 +124,9 @@ task :test do
   Rake::Task["mock:fixtures:reset"].invoke
   puts "\n[ \033[1;37;mrake test:base\33[0m ]\n"
   Rake::Task["test:base"].invoke
+  Rake::Task["mock:fixtures:reset"].invoke
+  puts "\n[ \033[1;37;mrake test:ec2\33[0m ]\n"
+  Rake::Task["test:ec2"].invoke
   DRIVERS.each do |driver|
     puts "\n[ \033[1;37;mrake drivers:#{driver}\33[0m ]\n"
     Rake::Task["test:drivers:#{driver}"].invoke
@@ -167,6 +170,16 @@ namespace :test do
     ]
   end
 
+  Rake::TestTask.new(:ec2) do |t|
+    t.ruby_opts << '-r./tests/test_helper.rb'   # Load SimpleCov when COVERAGE=1 is
set
+    unless RUBY_VERSION < '1.9.0'
+      t.loader = :testrb
+    end
+    t.test_files = FileList[
+      'tests/ec2/*test.rb',                     # EC2 frontend internal API tests
+    ]
+  end
+
 end
 
 


Mime
View raw message