[openstack-dev] Running individual UTs with TOX?

Jason Kölker jason at koelker.net
Mon Apr 29 19:40:04 UTC 2013


Almost the same but substituting another '.' for the ':' :

  tox -e py27 -- unit.test_stores.TestSwiftBackend.test_get
  tox -e py27 -- unit.test_stores

Happy Hacking!

7-11

On Mon, Apr 29, 2013 at 2:31 PM, Paul Michali <pcm at cisco.com> wrote:
> Hi,
>
> With the change from run_tests to TOX, how do I run a test for a single module, class, or function?
>
> From the run_tests.py doctoring:
>
> To run a single unit test::
>     python run_tests.py unit.test_stores:TestSwiftBackend.test_get
>
> To run a single unit test module::
>     python run_tests.py unit.test_stores
>
> Wondering how to do that with TOX.
>
>
> Thanks in advance,
>
> PCM (Paul Michali)
>
>
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>



More information about the OpenStack-dev mailing list