← Back to team overview

openstack team mailing list archive

Re: how to run selected tests

 

./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@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp



Follow ups

References