congress/doc/source/contributor/tests.rst
Chaolei Li 1c9a933686 Update the doc link
Change-Id: I20ac42f44ebaef8cbcb5d4beda0d4365a45c64f1
2017-11-08 21:33:20 +08:00

564 B

Unit Tests

Run unit tests in the Congress directory

$ tox -epy27

In order to break into the debugger from a unit test we need to insert a break point to the code:

import pdb; pdb.set_trace()

Then run tox with the debug environment as one of the following:

tox -e debug
tox -e debug test_file_name.TestClass.test_name

For more information see the oslotest documentation.