Reference Documentation:
https://github.com/yongluo2013/osf-openstack-training/blob/master/installation/ How-to-setup-openstack-development-environment.md
Unit tests:
Tox is similar to Java's maven, ant build tools.
Tox–h
Tox-e envlist, e.g. envlist = PY26,PY27,PY33,PEP8
To run the command example:
Tox-e py26
Tox-e PEP8
Tox-e PY26,PEP8
TOX-E py26 Nova.tests.scheduler
Running a case creates a virtual environment. Finally give the sumary.
Integration testing:
Independently of other OpenStack projects, test in a third-party perspective. Case can be submitted to the trunk through code. Act as the gatekeeper's role.
GitHub Path: https://github.com/openstack/tempest
The local run requires the installation of Devstack to ensure that the service starts properly and runs the following example:
./run_tempest.sh-n tempest.api.compute.servers.test_servers_negative. Serversnegativetestjson.test_reboot_non_existent_server
./run_tempest.sh-n--Tempest.api.compute.flavors
"OpenStack" OpenStack series 12 OpenStack Automated Testing