[Openstack] how to run selected tests

Yun Mao yunmao at gmail.com
Wed Feb 29 21:04:26 UTC 2012


Cool. Thanks Brad and Vish for the quick reply!

Yun

On Wed, Feb 29, 2012 at 3:57 PM, Vishvananda Ishaya
<vishvananda at gmail.com> wrote:
> ./run_tests.sh -N scheduler test_notify
> (replace -N with -V if you are using a virtual environment)
> You can also get very specific using : for class separation and . for path and method separation
>
> for example:
> ./run_tests.sh -N nova.tests.api.openstack.compute.contrib.test_floating_ips:FloatingIpSerializerTest.test_index_serializer
>
> also consider using -n for subsequent runs of run_tests.sh, it stops run_tests.sh from recreating the database each time
>
> Vish
>
> On Feb 29, 2012, at 12:42 PM, Yun Mao wrote:
>
>> Greetings,
>>
>> What's the most convenient way to run a subset of the existing tests?
>> By default run_tests.sh tests everything. For example, I'd like to run
>> everything in test_scheduler plus test_notify.py, what's the best way
>> to do that? Thanks,
>>
>> Yun
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~openstack
>> Post to     : openstack at lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~openstack
>> More help   : https://help.launchpad.net/ListHelp
>




More information about the Openstack mailing list