Files
python-novaclient/doc/source/contributor/testing.rst
Stephen Finucane e11efd8d76 doc: Create directory structure for docs migration
The spec [1] recommends the following sections:

- install
- contributor
- configuration
- cli
- admin
- user
- reference

Only a few of these are useful here:

- contributor
- cli
- user
- reference

Add these and populate them.

[1] specs.openstack.org/openstack/docs-specs/specs/pike/os-manuals-migration

Change-Id: I8a9ddcc915f25ebfaa1e994dba6c15883bd2715d
2017-07-12 15:07:35 +01:00

867 B

Testing

The preferred way to run the unit tests is using tox. There are multiple test targets that can be run to validate the code.

tox -e pep8

Style guidelines enforcement.

tox -e py27

Traditional unit testing.

tox -e functional

Live functional testing against an existing OpenStack instance.

Functional testing assumes the existence of a clouds.yaml file as supported by os-client-config It assumes the existence of a cloud named devstack that behaves like a normal DevStack installation with a demo and an admin user/tenant - or clouds named functional_admin and functional_nonadmin.

Refer to Consistent Testing Interface for more details.