Hey Eric,

The keystone team has a work around for this, not sure if it's applicable to the QA team, but I'll share anyway!

It's documented it here: http://docs.openstack.org/developer/keystone/developing.html#running-with-pdb
In short, there is a new debug tox environment ->
https://github.com/openstack/keystone/blob/master/tox.ini#L53
Which just kicks off this script -> https://github.com/openstack/keystone/blob/master/tools/debug_helper.sh


Regards,

Steve Martinelli
Software Developer - Openstack
Keystone Core Member

Phone: 1-905-413-2851
E-mail:
steve...@ca.ibm.com
8200 Warden Ave
Markham, ON L6G 1C7
Canada





From:        "Pendergrass, Eric" <eric.pendergr...@hp.com>
To:        "openstack-dev@lists.openstack.org" <openstack-dev@lists.openstack.org>,
Date:        05/07/2014 02:17 PM
Subject:        [openstack-dev] [qa] Debugging tox tests with pdb?




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?
 
Thanks,
Eric Pendergrass[attachment "smime.p7s" deleted by Steve Martinelli/Toronto/IBM] _______________________________________________
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

_______________________________________________
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

Reply via email to