Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Update to introduce unit/integration test distinction.

...

It's also covenient to add the top-level project too.

Running Tests

...

Building Whirr

Build and install the JARs from the top-level with

No Format
mvn install -DskipTests

Check To check the code adheres to the style guidelines, which are Sun's conventions except 2 spaces for tabs, http://java.sun.com/docs/codeconv/html/CodeConvTOC.doc.html. , you can use

No Format
mvn checkstyle:checkstyle

Running Tests

You can run the unit tests, which run locally without using any cloud providers, by typing:

No Format
mvn test

To run integration tests you need to have an account with a cloud provider, and you need to set the necessary credentials. In theory, Whirr runs against any provider supported by jclouds, but this hasn't been tested yet.

To run the tests for a given service, change into the services/<service> directory and type the following. Alternatively, run this from the top level to run the tests for all services.

No Format
mvn testverify -DargLine='-Dwhirr.test.provider=<cloud-provider> -Dwhirr.test.user=<cloud-provider-user> -Dwhirr.test.key=<cloud-provider-secret-key>'

...