[Openstack] how to run selected tests
Andrew Clay Shafer
acs at parvuscaptus.com
Wed Feb 29 21:13:41 UTC 2012
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 at gmail.com> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20120229/b07836e6/attachment.html>
More information about the Openstack
mailing list