[openstack-dev] [qa] Issue in Tempest API's tests when running with nosetest command?

GHANSHYAM MANN ghanshyammann at gmail.com
Fri May 23 00:34:35 UTC 2014


Tempest API’s XML test will run with 1 test failure when run with Nosetest.
When we run the tempest with nosetest command (ex -nosetest –v
./tempest/api/compute/test_xyz.py), it run *BaseComputeTest
::create_test_server & create_test_server_group *functions also as test
with any of the API tests. Because nose looks for tests in directories and
modules whose names start with *test* and *Test*, or contain a '_', '.',
or '-' followed by test or Test.



So for each API XML test, failure will happen in  create_test_server_group
function as  it’s XML client is not implemented (as expected).



To fix/stop these kind of issue, one solution is to have some policy for
Tempest not to name non test function with test_, Test_ etc so that nose
would not consider those as test case.



Looking forward to have more opinions on this.


-- 
Thanks
Ghanshyam Mann
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20140523/c1391f20/attachment.html>


More information about the OpenStack-dev mailing list