-
Notifications
You must be signed in to change notification settings - Fork 247
How to do stuff
Jamie Hannaford edited this page Jan 17, 2014
·
4 revisions
All these commands assume that you are in the repository root directory.
sh ./docs/generate.shThis requires PHPUnit to be installed; see http://phpunit.de
phpunit
We have developed a suite of integration tests to allow you to do a full run-through before releasing code. You execute these through a bespoke CLI tool which provides full granularity: so you can run the full suite or individual tests.
php ./tests/OpenCloud/Smoke/Runner.phpThe is the main script and will run everything if you do not provide additional flags. These CLI options are available to you:
| Short option | Long option | Description |
|---|---|---|
-I |
--include |
Explicitly includes a particular test unit. So if you want to run only Swift tests, you'd use -Iobjectstore. For multiple, you delimit by comma: -Iobjectstore,compute. This will also work -Icompute -Iobjectstore. |
-E |
--exclude |
Explicitly excludes a particular test unit. Format is identical to -I. |
-A |
--all |
View all possible test units |
-D |
--debug |
Enable logging so that every HTTP transaction over the wire is outputted. |
-H |
--help |
Help screen |