Files
python-novaclient/doc/source/contributor/testing.rst
Takashi NATSUME eb98178ea8 doc: Update Testing document
Python 2 support has been dropped since
If678d77b8da69121b0075bfbc4216531be25da6a.

Update the 'Testing' document.

Change-Id: Ic263943b1d6110925b9c9849c01b0d52d41a8351
2019-11-26 09:13:56 +09:00

926 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 py37

Traditional unit testing (Python 3.7).

tox -e functional

Live functional testing against an existing OpenStack instance. (Python 3.7)

tox -e cover

Generate a coverage report on unit testing.

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.