incubator-deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michal Fojtik <>
Subject Testing Deltacloud API guide
Date Tue, 12 Apr 2011 15:35:05 GMT

Today I added comprehensive set of Rake tasks you can use for testing various 
DC API backend providers functionality:

rake cucumber                # Call our Cucumber suite
rake cucumber:ec2:features   # Run Cucumber features
rake cucumber:ec2:junit      # Run Cucumber features
rake cucumber:ec2:test       # Run Cucumber features
rake cucumber:mock:features  # Run Cucumber features
rake cucumber:mock:junit     # Run Cucumber features
rake cucumber:mock:test      # Run Cucumber features
rake cucumber:sbc:features   # Run Cucumber features
rake cucumber:sbc:junit      # Run Cucumber features
rake cucumber:sbc:test       # Run Cucumber features
rake test                    # Call our Test::Unit suite
rake test:mock               # Run tests for mock
rake test:rackspace          # Run tests for rackspace
rake test:rhevm              # Run tests for rhevm

I hope task names are mostly self-descriptive, but:

rake cucumber:ec2:features   # => Will produce nice HTML report
rake cucumber:ec2:junit      # => Food for Apache Hudson
rake cucumber:ec2:test       # => Console output

To execute everything by 'one-click' (actually two clicks ;-) you can do:

$ cd core/server
$ rake test
$ rake cucumber

FYI: To install all dependencies for running unit tests, you can use integrated
     bundler using: $ cd core/server && bundle install
     After this command all test suites should work.

IMPORTANT: Please give it a try before you posting patch or some change :-)

  -- Michal

Michal Fojtik,
Deltacloud API:

View raw message