Merge pull request #471 from nathanleclaire/unit_test_doc

Document how to run unit tests in container in README
This commit is contained in:
Evan Hazlett 2015-02-02 16:38:51 -05:00
commit a57917045c
1 changed files with 18 additions and 0 deletions

View File

@ -313,6 +313,24 @@ run:
If you have any questions we're in #docker-machine on Freenode. If you have any questions we're in #docker-machine on Freenode.
## Unit Tests
To run the unit tests for the whole project, using the following script:
$ script/test
This will run the unit tests inside of a container, so you don't have to worry
about configuring your environment properly before doing so.
To run the unit tests for only a specific subdirectory of the project, you can
pass an argument to that script to specify which directory, e.g.:
$ script/test ./drivers/amazonec2
If you make a pull request, it is highly encouraged that you submit tests for
the code that you have added or modified in the same pull request.
## Integration Tests ## Integration Tests
There is a suite of integration tests that will run for the drivers. In order There is a suite of integration tests that will run for the drivers. In order
to use these you must export the corresponding environment variables for each to use these you must export the corresponding environment variables for each