add reminder how to run debug func tests

added comments on how to run in_process and specific
test cases

Change-Id: I485755996b15753323d30de09914d35e262fcedc
Signed-off-by: Thiago da Silva <thiago@redhat.com>
This commit is contained in:
Thiago da Silva 2016-08-05 14:22:28 -04:00
parent e42567f14f
commit ddbab05094
2 changed files with 9 additions and 1 deletions

View File

@ -1,5 +1,8 @@
#!/bin/bash #!/bin/bash
# How-To debug functional tests:
# SWIFT_TEST_IN_PROCESS=1 tox -e func -- --pdb test.functional.tests.TestFile.testCopy
SRC_DIR=$(python -c "import os; print os.path.dirname(os.path.realpath('$0'))") SRC_DIR=$(python -c "import os; print os.path.dirname(os.path.realpath('$0'))")
set -e set -e

View File

@ -132,6 +132,12 @@ tox environment::
tox -e func-in-process-fast-post tox -e func-in-process-fast-post
To debug the functional tests, use the 'in-process test' mode and pass the
``--pdb`` flag to tox::
SWIFT_TEST_IN_PROCESS=1 tox -e func -- --pdb \
test.functional.tests.TestFile.testCopy
The 'in-process test' mode searches for ``proxy-server.conf`` and The 'in-process test' mode searches for ``proxy-server.conf`` and
``swift.conf`` config files from which it copies config options and overrides ``swift.conf`` config files from which it copies config options and overrides
some options to suit in process testing. The search will first look for config some options to suit in process testing. The search will first look for config
@ -236,4 +242,3 @@ another year added, and date ranges are not needed.::
# implied. # implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.