[openstack-dev] [qa] Debugging tox tests with pdb?

Yuriy Taraday yorik.sar at gmail.com
Wed May 7 19:36:16 UTC 2014


Hello, Eric.


On Wed, May 7, 2014 at 10:15 PM, Pendergrass, Eric
<eric.pendergrass at hp.com>wrote:

> Hi, I’ve read much of the documentation around Openstack tests, tox, and
> testr.  All I’ve found indicates debugging can be done, but only by running
> the entire test suite.
>
>
>
> I’d like the ability to run a single test module with pdb.set_trace()
> breakpoints inserted, then step through the test.  I’ve tried this but it
> causes test failures on a test that would otherewise succeed.  The command
> I use to run the test is similar to this:  tox -e py27 <test_module_name>
>
>
>
> Is there some way to debug single tests that I haven’t found?  If not, how
> is everyone doing test development without the ability to debug?
>
>
You can do it as easy as:
.tox/py27/bin/python -m testtools.run <test_module_name>

-- 

Kind regards, Yuriy.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20140507/0564863b/attachment.html>


More information about the OpenStack-dev mailing list