deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@redhat.com
Subject [PATCH core 2/6] Client: Removed unused rake tasks and added test task
Date Wed, 08 Aug 2012 12:54:35 GMT
From: Michal Fojtik <mfojtik@redhat.com>

* Fixtures generators are not needed
* Removed task for deltacloudc
* Added minitest task

Signed-off-by: Michal fojtik <mfojtik@redhat.com>
---
 client/Rakefile |   27 ++++-----------------------
 1 file changed, 4 insertions(+), 23 deletions(-)

diff --git a/client/Rakefile b/client/Rakefile
index c5a9f70..9ced4ad 100644
--- a/client/Rakefile
+++ b/client/Rakefile
@@ -26,7 +26,6 @@ task 'documentation' do
   load 'lib/documentation.rb'
 end
 
-
 spec = Gem::Specification.load('deltacloud-client.gemspec')
 Gem::PackageTask.new(spec) do |pkg|
   pkg.need_tar = true
@@ -56,26 +55,8 @@ task :reinstall do
   puts %x{gem install deltacloud-client-*.gem --local}
 end
 
-desc "Setup Fixtures"
-task 'fixtures' do
-  FileUtils.rm_rf( File.dirname( __FILE__ ) + '/specs/data' )
-  FileUtils.cp_r( File.dirname( __FILE__ ) + '/specs/fixtures', File.dirname( __FILE__ )
+ '/specs/data' )
-end
-
-namespace :test do
-  Rake::TestTask.new(:cmd) do |t|
-    t.libs << "tests"
-    t.test_files = FileList['tests/cmd.rb']
-    t.verbose = true
-  end
-end
-
-desc "Clean Fixtures"
-task 'fixtures:clean' do
-  FileUtils.rm_rf( File.dirname( __FILE__ ) + '/specs/data' )
-end
-
-begin
-  require 'ci/reporter/rake/rspec'
-rescue LoadError
+Rake::TestTask.new(:test) do |t|
+  t.test_files = FileList[
+    'tests/*test.rb',                     # EC2 frontend internal API tests
+  ]
 end
-- 
1.7.10.2


Mime
View raw message