Create functional test base

Setup test runners to run unit tests by default and add a stub
functional test that we can get gating.

Change-Id: I6627925ab63340c880adc7c938a0b74faff47bc7
Implements: bp functional-testing
This commit is contained in:
Jamie Lennox 2015-02-13 11:16:03 +11:00
parent f82f274f6b
commit c419425c85
3 changed files with 5 additions and 1 deletions

View File

@ -1,4 +1,4 @@
[DEFAULT]
test_command=${PYTHON:-python} -m subunit.run discover -t ./ ./keystoneclient/tests $LISTOPT $IDOPTION
test_command=${PYTHON:-python} -m subunit.run discover -t ./ ${OS_TEST_PATH:-./keystoneclient/tests/unit} $LISTOPT $IDOPTION
test_id_option=--load-list $IDFILE
test_list_option=--list

View File

@ -17,6 +17,7 @@ oslotest>=1.2.0 # Apache-2.0
pycrypto>=2.6
requests-mock>=0.5.1 # Apache-2.0
sphinx>=1.1.2,!=1.2.0,!=1.3b1,<1.3
tempest-lib>=0.2.0
testrepository>=0.0.18
testresources>=0.2.4
testtools>=0.9.36,!=1.2.0

View File

@ -30,6 +30,9 @@ downloadcache = ~/cache/pip
[testenv:debug]
commands = oslo_debug_helper -t keystoneclient/tests {posargs}
[testenv:functional]
setenv = OS_TEST_PATH=./keystoneclient/tests/functional
[flake8]
# H405: multi line docstring summary not separated with an empty line
ignore = H405