<div><br></div><div>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.</div><div><br></div><div>The default with no args will run all the tests.</div>
<div><br></div><div>You can run one file passing in the name of the file minus .py (if it is a sub-directory, replace slashes with .)</div><div><br></div><div>./run_tests.sh test_compute</div><div><br></div><div>or</div><div>
<br></div><div>./run_tests.sh scheduler.test_scheduler</div><div><br></div><div>A module can be run passing in the file and the module:</div><div><br></div>./run_tests.sh scheduler.test_scheduler:SchedulerManagerTestCase<div>
<br></div><div>A single test by adding the name of the test:</div><div><br></div><div>./run_tests.sh scheduler.test_scheduler:SchedulerManagerTestCase.test_existing_method</div><div><br></div><div>Hope that helps.</div><div>
<br></div><div><br></div><div><br><br><div class="gmail_quote">On Wed, Feb 29, 2012 at 3:42 PM, Yun Mao <span dir="ltr"><<a href="mailto:yunmao@gmail.com">yunmao@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Greetings,<br>
<br>
What's the most convenient way to run a subset of the existing tests?<br>
By default run_tests.sh tests everything. For example, I'd like to run<br>
everything in test_scheduler plus test_notify.py, what's the best way<br>
to do that? Thanks,<br>
<br>
Yun<br>
<br>
_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
</blockquote></div><br></div>