summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorIlya Tyaptin <ityaptin@mirantis.com>2015-07-21 18:02:13 +0300
committerNadya Shakhat <nprivalova@mirantis.com>2015-08-06 07:59:45 +0300
commit49f53f35a5b7d616517b23e75b18e159ece41d4a (patch)
tree4bea41b98961ff84a8c06c085b43ef53776c5c8c /tox.ini
parente16c0ddd9d3d4c3585011509d967f48c06b42c1e (diff)
downloadceilometer-49f53f35a5b7d616517b23e75b18e159ece41d4a.tar.gz
Initial separating unit and functional tests
Currently we run tests which uses real backend or real daemons with other unit tests. This CR is initial for sequence of functional tests implementation. It contains only moving files and modules to right directories and fixing tox.ini. This approach allows to avoid constantly rebase conflicts, because git handles file removing correct. Next step - separate classes and functions from moved files to right test types. Depends-On: Ifdb0de150b2c738117308b2aae6c0c197e162821 Change-Id: I16b84ed83ac075658626f3ec6a35a24e228b61e7 Partialy-Implement: blueprint ceilometer-functional-tests
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini9
1 files changed, 7 insertions, 2 deletions
diff --git a/tox.ini b/tox.ini
index 168112f1..376b1159 100644
--- a/tox.ini
+++ b/tox.ini
@@ -10,8 +10,9 @@ install_command = pip install -U {opts} {packages}
usedevelop = True
setenv = VIRTUAL_ENV={envdir}
EVENTLET_NO_GREENDNS=yes
+ OS_TEST_PATH=ceilometer/tests/unit
commands =
- bash -x {toxinidir}/setup-test-env-mongodb.sh python setup.py testr --slowest --testr-args="{posargs}"
+ python setup.py testr --slowest --testr-args="{posargs}"
whitelist_externals = bash
# TODO(ityaptin): With separation tests to unit and functional folders we need
@@ -19,19 +20,23 @@ whitelist_externals = bash
# in "py-<backend>" jobs
[testenv:py-mongodb]
+setenv = OS_TEST_PATH=ceilometer/tests/functional/
commands =
bash -x {toxinidir}/setup-test-env-mongodb.sh python setup.py testr --slowest --testr-args="{posargs}"
[testenv:py-mysql]
+setenv = OS_TEST_PATH=ceilometer/tests/functional/
commands =
bash -x {toxinidir}/setup-test-env-mysql.sh python setup.py testr --slowest --testr-args="{posargs}"
[testenv:py-pgsql]
+setenv = OS_TEST_PATH=ceilometer/tests/functional/
commands =
bash -x {toxinidir}/setup-test-env-postgresql.sh python setup.py testr --slowest --testr-args="{posargs}"
# Functional tests for elastic search
[testenv:py-elastic]
+setenv = OS_TEST_PATH=ceilometer/tests/functional/
commands =
bash -x {toxinidir}/setup-test-env-es.sh python setup.py testr --slowest --testr-args="{posargs}"
@@ -57,7 +62,7 @@ commands =
# gabbi tests without needing to discovery across the entire body of
# tests.
[testenv:gabbi]
-setenv = OS_TEST_PATH=ceilometer/tests/gabbi
+setenv = OS_TEST_PATH=ceilometer/tests/functional/gabbi
commands =
bash -x {toxinidir}/setup-test-env-mongodb.sh \
python setup.py testr --testr-args="{posargs}"