Skip to content

Commit

Permalink
mention DB_CONNECTION env variable for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitriy Kalinin and Mark Rushakoff committed Mar 26, 2013
1 parent 5fba695 commit 2e0d56c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Expand Up @@ -38,3 +38,14 @@ The Cloud Controller interacts with other core components of the Cloud Foundry p
- Receives information from the Health Manager about applications
- Subscribes to Service Gateways that advertise available services
- Instructs Service Gateways to handle provisioning, unprovision, bind and unbind operations for services

## Testing

By default `rspec` will run test suite with sqlite3 in-memory database;
however, you can specify connection string via `DB_CONNECTION` environment
variable to test against postgres and mysql. Examples:

DB_CONNECTION="postgres://postgres@localhost:5432/ccng" rspec
DB_CONNECTION="mysql2://root:password@localhost:3306/ccng" rspec

Travis currently runs 3 build jobs against sqlite, postgres, and mysql.

0 comments on commit 2e0d56c

Please sign in to comment.