)]}'
{"doc/source/devref/unit_tests.rst":[{"author":{"_account_id":6491,"name":"xing-yang","email":"xingyang105@gmail.com","username":"xing-yang"},"change_message_id":"63eca6fc341013b2b43767caf176ea83e538cff2","unresolved":false,"context_lines":[{"line_number":49,"context_line":"  tox -e debug cinder.tests.unit.test_volume"},{"line_number":50,"context_line":"  tox -e debug cinder.tests.unit.test_volume.AvailabilityZoneTestCase"},{"line_number":51,"context_line":"  tox -e debug cinder.tests.unit.test_volume.AvailabilityZoneTestCase.test_list_availability_zones_cached"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"For more information see the `oslotest documentation"},{"line_number":54,"context_line":"\u003chttp://docs.openstack.org/developer/oslotest/features.html#debugging-with-oslo-debug-helper\u003e`_."},{"line_number":55,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"7aa08908_b71ad16c","line":52,"updated":"2016-06-06 06:12:32.000000000","message":"I downloaded this patch and added \"import pdb; pdb.set_trace()\" on the first line inside the test cinder.tests.unit.test_volume.AvailabilityZoneTestCase.test_list_availability_zones_cached and ran the tox command \"tox -e debug cinder.tests.unit.test_volume.AvailabilityZoneTestCase.test_list_availability_zones_cached\".  It ran 0 tests and did not stop at my break point.\n\nIf I just run \"tox -e py27 -- -n cinder.tests.unit.test_volume.AvailabilityZoneTestCase.test_list_availability_zones_cached\"  with the same break point (with or without the change you made in tox.ini), it will stop at the break point.\n\nWhich tox version is needed to support \"tox -e debug\"?","commit_id":"2c0017359a7bc1101ae0c89e511648e243ea0333"},{"author":{"_account_id":20105,"name":"Cao ShuFeng","email":"caosf.fnst@cn.fujitsu.com","username":"caosf.fnst"},"change_message_id":"2a1013023a0a60be2b2b2d17d3fd0b11defe4f3c","unresolved":false,"context_lines":[{"line_number":49,"context_line":"  tox -e debug cinder.tests.unit.test_volume"},{"line_number":50,"context_line":"  tox -e debug cinder.tests.unit.test_volume.AvailabilityZoneTestCase"},{"line_number":51,"context_line":"  tox -e debug cinder.tests.unit.test_volume.AvailabilityZoneTestCase.test_list_availability_zones_cached"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":"For more information see the `oslotest documentation"},{"line_number":54,"context_line":"\u003chttp://docs.openstack.org/developer/oslotest/features.html#debugging-with-oslo-debug-helper\u003e`_."},{"line_number":55,"context_line":""}],"source_content_type":"text/x-rst","patch_set":2,"id":"7aa08908_0874629a","line":52,"in_reply_to":"7aa08908_b71ad16c","updated":"2016-06-06 07:18:09.000000000","message":"Hi, xing-yang:\n     Thanks for your review.\n\nI use tox (2.3.1).\nWhen I run comand \"tox -e debug cinder.tests.unit.test_volume.AvailabilityZoneTestCase.test_list_availability_zones_cached\", It does run the test.\n\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\ndebug runtests: commands[0] | oslo_debug_helper -t cinder/tests/unit cinder.tests.unit.test_volume.AvailabilityZoneTestCase.test_list_availability_zones_cached\nTests running...\n\nRan 1 test in 1.199s\nOK\n\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\n\nThanks for reminding me that py27 also supports pdb.\nThen this \"tox -e debug\" get the last advantage than \"tox -e py27\".\nWith \"tox -e debug\", we can get the console output from tested code, but with \"tox -e py27\", we can\u0027t.\n\nThis would be the use case:\n    I want to see the value of variable(and I am too lazy to use pdb), so I just print it.\n    .. code-block:: python\n    print(val)     # I can\u0027t see val in console with \"tox -e py27\", but it\u0027s works with \"tox -e debug\"\n\nThanks","commit_id":"2c0017359a7bc1101ae0c89e511648e243ea0333"}]}
