deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michal Fojtik <mfoj...@redhat.com>
Subject Re: IMPORTANT: Deprecating driver specific tests in server/tests directory
Date Fri, 20 Jul 2012 09:42:44 GMT
Hi,

This is weird, I'll setup a F16 machine and try to run tests on that.
I'm using RVM with 1.9.3 but also test on 1.8.7.

With -r2 all tests pass, the minor change I need to do because of broken 'rake'
in bundler is:

diff --git a/server/Rakefile b/server/Rakefile
index 83460c8..e5397c4 100644
--- a/server/Rakefile
+++ b/server/Rakefile
@@ -114,6 +114,7 @@ end
 
 Rake::TestTask.new do |t|
   t.ruby_opts << '-r./tests/test_helper.rb'   # Load SimpleCov when COVERAGE=1 is set
+  t.loader = :testrb
   t.test_files = FileList[
     'tests/helpers/**/*test.rb',              # Deltacloud extensions (core_ext) and other
helpers
     'tests/drivers/base/*test.rb',            # Deltacloud drivers API tests


Using that:

firefly ~/code/core/server $ bundle exec rake test
rm -rf /var/tmp/deltacloud-mock-mfojtik
mkdir -p /var/tmp/deltacloud-mock-mfojtik
cp -r /Users/mfojtik/code/core/server/lib/deltacloud/drivers/mock/data/blobs /Users/mfojtik/code/core/server/lib/deltacloud/drivers/mock/data/buckets
/Users/mfojtik/code/core/server/lib/deltacloud/drivers/mock/data/cimi /Users/mfojtik/code/core/server/lib/deltacloud/drivers/mock/data/images
/Users/mfojtik/code/core/server/lib/deltacloud/drivers/mock/data/instances /Users/mfojtik/code/core/server/lib/deltacloud/drivers/mock/data/keys
/Users/mfojtik/code/core/server/lib/deltacloud/drivers/mock/data/storage_snapshots /Users/mfojtik/code/core/server/lib/deltacloud/drivers/mock/data/storage_volumes
/var/tmp/deltacloud-mock-mfojtik
Run options: 

# Running tests:

............................................................................................................

Finished tests in 5.269124s, 20.4968 tests/s, 58.8333 assertions/s.

108 tests, 310 assertions, 0 failures, 0 errors, 0 skips

Gemfile.lock attached.


Mime
View raw message