openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #08123
Re: how to run selected tests
The way run_tests.sh works right now, you can run all tests, all tests in a
file, a module or an individual test depending on what args you run with.
The default with no args will run all the tests.
You can run one file passing in the name of the file minus .py (if it is a
sub-directory, replace slashes with .)
./run_tests.sh test_compute
or
./run_tests.sh scheduler.test_scheduler
A module can be run passing in the file and the module:
./run_tests.sh scheduler.test_scheduler:SchedulerManagerTestCase
A single test by adding the name of the test:
./run_tests.sh
scheduler.test_scheduler:SchedulerManagerTestCase.test_existing_method
Hope that helps.
On Wed, Feb 29, 2012 at 3:42 PM, Yun Mao <yunmao@xxxxxxxxx> 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
>
References