Two things here:

(a) it sounds like the README in the python-quantumclient should describe
how to run the tests.
(b) adding monty to the thread, as I think he setup the tox stuff with the
idea that openstack projects in general where going to move away from
run_tests.py and toward all using tox as the standard.

Dan


On Wed, Mar 28, 2012 at 2:07 AM, Yong Sheng Gong <gong...@cn.ibm.com> wrote:

> http://tox.testrun.org/latest/
> What is Tox?
>
> Tox as is a generic virtualenv 
> <http://pypi.python.org/pypi/virtualenv>management and test command line tool 
> you can use for:
>
>    - checking your package installs correctly with different Python
>    versions and interpreters
>    - running your tests in each of the environments, configuring your
>    test tool of choice
>    - acting as a frontend to Continuous Integration servers, greatly
>    reducing boilerplate and merging CI and shell-based testing.
>
> I think we should have a "runtests.py -N" framework just like other
> openstack projects.
>
>
> -----netstack-bounces+gongysh=cn.ibm....@lists.launchpad.net wrote: -----
>
> To: netstack@lists.launchpad.net
> From: Ionuț Arțăriși <iartar...@suse.cz> <iartar...@suse.cz>
> Sent by: netstack-bounces+gongysh=cn.ibm....@lists.launchpad.net
> Date: 03/28/2012 04:56PM
> Subject: Re: [Netstack] About test framework on python-quantumclient
> project
>
>
> On 03/28/2012 06:03 AM, Brad Hall wrote:
> > There is a test framework.. it's tox (take a look at tox.ini).  To run
> the
> > tests use tox -v:
> >
> > $ tox -v
> > ...
> > Ran 148 tests in 1.379s
> >
> > Thanks,
> > Brad
> >
>
> That's good to know. I didn't know python-quantumclient had a testing
> framework either.
>
> Tox seems to use virtualenv. Is there a way to disable virtualenv and
> just run the tests against the system's installed packages? Or is that
> accomplished by just running nosetests?
>
> For the other components, we're currently using "runtests.py -N" to
> verify that all of the required packages are installed and the installed
> versions work (we use rpms rather than pip for installing python packages).
>
> Either way, I think it would be good to create a run_tests.sh file to be
> consistent with the other projects. Even if most of the calls just go to
> tox instead.
>
> -Ionuț
>
> --
> Mailing list: https://launchpad.net/~netstack
> Post to     : netstack@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~netstack
> More help   : https://help.launchpad.net/ListHelp
>
>
>
>
> --
> Mailing list: https://launchpad.net/~netstack
> Post to     : netstack@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~netstack
> More help   : https://help.launchpad.net/ListHelp
>
>


-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dan Wendlandt
Nicira Networks: www.nicira.com
twitter: danwendlandt
~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- 
Mailing list: https://launchpad.net/~netstack
Post to     : netstack@lists.launchpad.net
Unsubscribe : https://launchpad.net/~netstack
More help   : https://help.launchpad.net/ListHelp

Reply via email to