[openstack-dev] Running individual UTs with TOX?
Jason Kölker
jason at koelker.net
Mon Apr 29 19:41:20 UTC 2013
I should note that that syntax requires that the {posargs} variable be
in the commands line for the environment.
Happy Hacking!
7-11
On Mon, Apr 29, 2013 at 2:40 PM, Jason Kölker <jason at koelker.net> 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
>>
More information about the OpenStack-dev
mailing list