← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1534030] Re: Add tox debug env

 

** No longer affects: horizon

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1534030

Title:
  Add tox debug env

Status in Magnum:
  Fix Released
Status in python-magnumclient:
  Fix Released

Bug description:
  Once we add tox debug env in tox.ini , we can debug test cases when
  tox is running.

  In fact, we use oslotest to debug. oslotest is OpenStack Testing Framework and Utilities.
  When we run "tox -e debug", tox uses oslotest to debug our test cases.
  links:  http://docs.openstack.org/developer/oslotest/index.html

  Usage:
  insert pdb;pdb.set_trace() into where you want to debug in test cases. And then run command "tox -e debug" to break the procedure.
  Details about how to debug, please click this link:
  http://docs.openstack.org/developer/oslotest/features.html

  It's easy to use and convient for us to debug those test cases.

  Meantime, I add [testenv:debug-py27].
  So, we can run "tox -e debug-py27" to designate python env of running debug. Just like we run "tox -e py27". In fact, why we run "tox" instead of "run -e py27" is that we have written py27 in [tox] envlist  already, so we don't need to write it again.
  But we don't need to  write debug in env, so we can write [debug-py27]. Actually, It's not necessary, but only to be a little more robust.

To manage notifications about this bug go to:
https://bugs.launchpad.net/magnum/+bug/1534030/+subscriptions