---
site_name: Deltacloud API
title: Writing and running tests
---
You should add a test to every new feature or new driver you create to make sure, that everything is running as expected. There are two different directories in the Deltacloud project, where the tests are stored: /deltacloud/server/tests for Unit tests for drivers and /deltacloud/tests for Cucumber tests.
Initiate the Unit tests:
$ cd /path/to/deltacloud/server $ rake test
This will invoke all Unit tests defined in /deltacloud/server/tests by inspecting the Rakefile in /deltacloud/server. To invoke a specific driver tests type:
$ cd /path/to/deltacloud/server $ rake test:rackspace _OR_ $ rake test:mock _etc_
Initiate the Cucumber tests:
$ cd /path/to/deltacloud/server $ rake cucumber
Alternatively, you can invoke the cucumber tests directly without using Rakefile:
$ cd /path/to/deltacloud/server $ cucumber ../tests/mock _OR_ $ cucumber ../tests/ec2 _etc_