[openstack-dev] [Fuel] py.test vs testrepository
therve at redhat.com
Wed Oct 7 11:17:18 UTC 2015
On Wed, Oct 7, 2015 at 12:59 PM, Roman Prykhodchenko <me at romcheg.me> wrote:
> What I can extract now from this thread is that Fuel should switch to
> testr because of the following reasons:
> - Diversity of tools is a bad idea on a project scale
> - testrepository and related components are used in OpenStack Infra
> environment for much more tasks than just running tests
> - py.test won’t be added to global-requirements so there always be a
> chance of another dependency hell
> - Sticking to global requirements is an idea which is in the scope of
> discussions around Fuel.
> Sounds like that’s the point when we should just file appropriate bugs and
> use testr in smaller components, e. g., Fuel Client, first and then try in
> in Nailgun.
I'd say that using testr in the default tox targets and thus in the gate is
the reasonable choice, for the reasons mentioned elsewhere. That said, I
also think that it's also fair to allow alternate test runners on the local
developer environment. You may have to make some tweaks from time to time,
but most of the time py.test should be able to run the test suite supported
by testr (this is not necessarily true for nose for example which doesn't
support testscenarios AFAIK).
This way you standardize on the tools (testr remains the "source of
truth"), but make local debugging much nicer.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the OpenStack-dev