From dbd4a100fe7611b036d87860b04958ce2e83ee53 Mon Sep 17 00:00:00 2001 From: Sean McGinnis Date: Wed, 17 Apr 2019 16:29:04 -0500 Subject: [PATCH] Update unit test debugging instructions for stestr Updates our instructions for debugging unit tests to use the stestr way of doing it since we normally run our unit tests using stestr. Change-Id: If1f320b2e288ba69d3fdb324b9919d84f6dfdd4f Signed-off-by: Sean McGinnis --- doc/source/contributor/testing.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/source/contributor/testing.rst b/doc/source/contributor/testing.rst index adb12fe0437..f6f3beeaead 100644 --- a/doc/source/contributor/testing.rst +++ b/doc/source/contributor/testing.rst @@ -232,11 +232,11 @@ Then run the unit test with pdb enabled: .. code-block:: bash - source .tox/py35/bin/activate + source .tox/py36/bin/activate - python -m testtools.run cinder.tests.unit.test_volume_utils + stestr run -n cinder.tests.unit.test_volume_utils # Or to get a list of tests to run - python -m testtools.run discover -t ./ cinder/tests/unit --list | grep group > tests_to_run.txt - python -m testtools.run --load-list tests_to_run.txt + stestr list test_volume_utils > tests_to_run.txt + stestr run -n --load-list tests_to_run.txt