deb-oslotest/doc/source/debugging.rst
Doug Hellmann 1c034de9aa Add documentation about using oslo_debug_helper
Change-Id: I7fcae0676aaa2c598dbd14c0c7674d95357c4022
2015-09-25 14:08:24 +00:00

572 B

Debugging Tests

Running tests through testrepository makes it difficult to use pdb for debugging them. oslotest includes oslo_debug_helper to make using pdb simpler/possible.

First, add a pdb call to the test code:

import pdb; pdb.set_trace()

Then run the tests through oslo_debug_helper like

$ oslo_debug_helper [tests to run]

or

$ tox -e venv -- oslo_debug_helper [tests to run]