[openstack-dev] Running individual UTs with TOX?

Sergey Lukjanov slukjanov at mirantis.com
Mon Apr 29 19:41:04 UTC 2013


Hi,

I think you can use the following commands:

tox -e py27 -- unit.test_stores:TestSwiftBackend.test_get
tox -e py27 -- unit.test_stores


Sergey Lukjanov


On Apr 29, 2013, at 23:31, Paul Michali <pcm at cisco.com> wrote:

> Hi,
> 
> With the change from run_tests to TOX, how do I run a test for a single module, class, or function?
> 
> From the run_tests.py doctoring:
> 
> To run a single unit test::
>    python run_tests.py unit.test_stores:TestSwiftBackend.test_get
> 
> To run a single unit test module::
>    python run_tests.py unit.test_stores
> 
> Wondering how to do that with TOX.
> 
> 
> Thanks in advance,
> 
> PCM (Paul Michali)
> 
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev




More information about the OpenStack-dev mailing list