[openstack-dev] Running individual UTs with TOX?

Paul Michali pcm at cisco.com
Mon Apr 29 19:57:45 UTC 2013


Thanks Jason that works just fine with replacement of ':' with '.'


PCM (Paul Michali)

Contact info for Cisco users http://twiki.cisco.com/Main/pcm


On Apr 29, 2013, at 3:40 PM, Jason Kölker wrote:

> Almost the same but substituting another '.' for the ':' :
> 
>  tox -e py27 -- unit.test_stores.TestSwiftBackend.test_get
>  tox -e py27 -- unit.test_stores
> 
> Happy Hacking!
> 
> 7-11
> 
> On Mon, Apr 29, 2013 at 2:31 PM, 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
>> 
> 
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20130429/0d2697f1/attachment.html>


More information about the OpenStack-dev mailing list