Files
python-novaclient/doc/source/contributor/testing.rst
Takashi Natsume 4881d04ded Update the Testing document
Python 3.8 is no longer supported in 2026.1.
Python 3.10 is the minimum supported/required version for 2026.1.

Change-Id: Ic7fea2195f2ec6f2f48f2e9b359d021d0f01d0b7
Signed-off-by: Takashi Natsume <takanattie@gmail.com>
2026-01-06 11:07:44 +00:00

907 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 py310

Traditional unit testing (Python 3.10).

tox -e functional

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

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.