summaryrefslogtreecommitdiffstats
path: root/tox.ini
diff options
context:
space:
mode:
authorValerii Ponomarov <vponomar@redhat.com>2018-03-29 20:27:40 +0300
committerValerii Ponomarov <vponomar@redhat.com>2018-04-02 13:20:00 +0300
commit2a8bdbdbdf95f0ec5720d202b646e33dbb85f713 (patch)
treebc5a8521540e367e11d36d7fe17d6d7eb155fe36 /tox.ini
parent0fe2b93d7b5ef4e7694746525592ea399560690d (diff)
Add 'functional' venv to tox config
Now, it is possible to run the functional tests having all the dependencies installed in it with following command: $ tox -e functional -- glusto -c %config%.yaml --pytest='-v -s tests' Local 'cnslibs' package is installed in editable mode, it means that any changes to its files will be taken up by next run of tests using above tox venv command. Also, update '.gitignore' file ignoring more temp files. Change-Id: I3118489f4fb6e52e5e94705b68c18ea1783a18b6
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini15
1 files changed, 14 insertions, 1 deletions
diff --git a/tox.ini b/tox.ini
index 460066d9..87f64768 100644
--- a/tox.ini
+++ b/tox.ini
@@ -6,13 +6,26 @@ envlist = pep8
[testenv]
basepython = python2.7
setenv = VIRTUAL_ENV={envdir}
-whitelist_externals = find
+whitelist_externals = *
commands = find . -type f -name "*.py[c|o]" -delete
[testenv:pep8]
deps = -r{toxinidir}/test-requirements.txt
commands = flake8 {posargs}
+[testenv:functional]
+deps =
+ rtyaml
+ ddt
+ git+git://github.com/loadtheaccumulator/glusto.git
+ git+git://github.com/gluster/glusto-tests.git#egg=glustolibs-gluster&subdirectory=glustolibs-gluster
+ git+git://github.com/gluster/glusto-tests.git#egg=glustolibs-io&subdirectory=glustolibs-io
+ git+git://github.com/gluster/glusto-tests.git#egg=glustolibs-misc&subdirectory=glustolibs-misc
+ --editable=file:///{toxinidir}/cns-libs
+commands =
+ find . -type f -name "*.py[c|o]" -delete
+ {posargs:bash -c "echo 'No commands have been specified. Exiting.'; exit 1"}
+
[testenv:venv]
commands = {posargs}