← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1534030] Re: Add tox debug env

 

Reviewed:  https://review.openstack.org/266020
Committed: https://git.openstack.org/cgit/openstack/magnum/commit/?id=97e3a6b897f8233c155c7c454c893b0976f87a06
Submitter: Jenkins
Branch:    master

commit 97e3a6b897f8233c155c7c454c893b0976f87a06
Author: ting.wang <ting.wang@xxxxxxxxxxxx>
Date:   Sun Jan 10 00:42:39 2016 +0800

    Add debug testenv in tox
    
    Once we add debug testenv, we can use "tox -e debug"
    to debug test cases when tox is running. Then tox will
    use oslotest which really debug our test cases.
    
    Only we should do is insert pdb into code.It's easy to use.
    ref:
    http://docs.openstack.org/developer/oslotest/debugging.html
    
    Closes-Bug: #1534030
    Change-Id: If10634fd0a8c9b9093ccd64f5ba271cf09cfc37c


** Changed in: magnum
       Status: In Progress => Fix Released

-- 
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 OpenStack Dashboard (Horizon):
  In Progress
Status in Magnum:
  Fix Released
Status in python-magnumclient:
  In Progress

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/horizon/+bug/1534030/+subscriptions