<div dir="ltr">Yes, Issue is in nose. I do not like nose due to these kind of assumption for test running :). There is no reason of using nose, I just ran that and counter this issue. <br><div class="gmail_extra"><br></div>
<div class="gmail_extra">I totally agree on your point not to spent time to fix these kind of issue. As you mentioned. may be blocking nose would be good idea.<br><br><div class="gmail_quote">On Fri, May 23, 2014 at 11:12 AM, Matthew Treinish <span dir="ltr"><<a href="mailto:mtreinish@kortar.org" target="_blank">mtreinish@kortar.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">On Fri, May 23, 2014 at 09:34:35AM +0900, GHANSHYAM MANN wrote:<br>

> Tempest API’s XML test will run with 1 test failure when run with Nosetest.<br>
> When we run the tempest with nosetest command (ex -nosetest –v<br>
> ./tempest/api/compute/test_xyz.py), it run *BaseComputeTest<br>
> ::create_test_server & create_test_server_group *functions also as test<br>
> with any of the API tests. Because nose looks for tests in directories and<br>
> modules whose names start with *test* and *Test*, or contain a '_', '.',<br>
> or '-' followed by test or Test.<br>
<br>
So this is part of the many reasons we don't support or advise running tempest<br>
with nosetests. I brought this up a few months ago when I tried to be a bit<br>
more aggressive about this and block nose from being run at all. [1] Is there<br>
any particular reason you are still trying to run Tempest with nosetests?<br>
<br>
><br>
><br>
><br>
> So for each API XML test, failure will happen in  create_test_server_group<br>
> function as  it’s XML client is not implemented (as expected).<br>
><br>
><br>
><br>
> To fix/stop these kind of issue, one solution is to have some policy for<br>
> Tempest not to name non test function with test_, Test_ etc so that nose<br>
> would not consider those as test case.<br>
<br>
So trying to accommodate nose especially on this isn't going to happen. The<br>
python docs clearly state test_* named methods are what should be used so that<br>
the test driver recognizes them as tests. Nose is what is being overzealous<br>
and causing issues; the bug is in nose not tempest. I think this suggested patch<br>
or something similar has been pushed at least twice already. The problem is even<br>
after making this change large chunks of tempest still won't work because of<br>
other things with nose. (like testscenarios) It's really not worth the review<br>
effort to merge a change like this. We've been actually moving in the other<br>
direction too and removed all the in tree references and workarounds related to<br>
nose during Icehouse.<br>
<br>
For a project of tempest's size and growth rate trying to workaround all the<br>
quirks of every test runner isn't really feasible especially because we're not<br>
running with anything but testr in the gate. That being said I think nose might<br>
be a slightly special case in that I know it doesn't work for several reasons.<br>
(only because it used to be the default) Other test runners probably wouldn't<br>
have nearly as many issues, if any at all.<br>
<br>
><br>
><br>
><br>
> Looking forward to have more opinions on this.<br>
><br>
><br>
<br>
<br>
-Matt Treinish<br>
<br>
[1] <a href="http://lists.openstack.org/pipermail/openstack-dev/2014-January/024673.html" target="_blank">http://lists.openstack.org/pipermail/openstack-dev/2014-January/024673.html</a><br>
<br>
<br>
_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><div>Thanks & Regards</div><div>Ghanshyam Mann</div><div><br></div></div>
</div></div>