Fuel testing
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

tox.ini 1.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # Tox (http://tox.testrun.org/) is a tool for running tests
  2. # in multiple virtualenvs. This configuration file will run the
  3. # test suite on all supported python versions. To use it, "pip install tox"
  4. # and then run "tox" from this directory.
  5. [tox]
  6. minversion = 1.6
  7. envlist = py27,pep8
  8. skipsdist = True
  9. [testenv]
  10. usedevelop = True
  11. whitelist_externals = bash
  12. setenv = VIRTUAL_ENV={envdir}
  13. CUSTOM_OSTF_CONFIG={toxinidir}/etc/tools/ostf_ci.conf
  14. OSTF_LOGS={toxinidir}/ostf
  15. OSTF_DB=openstack_citest
  16. OSTF_DB_USER=openstack_citest
  17. OSTF_DB_PW=openstack_citest
  18. OSTF_DB_ROOT=postgres
  19. OSTF_DB_ROOTPW=insecure_slave
  20. OSTF_DB_ROOTPGPASS={toxinidir}/pgpass
  21. passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY CUSTOM_OSTF_CONFIG
  22. deps = -r{toxinidir}/test-requirements.txt
  23. commands =
  24. /bin/bash "{toxinidir}/etc/tools/prepare_settings.sh"
  25. /bin/bash "{toxinidir}/etc/tools/prepare_database.sh"
  26. ostf-server --config-file {toxinidir}/etc/tools/ostf_ci.conf --after-initialization-environment-hook
  27. nosetests {posargs:fuel_plugin/testing/tests/unit}
  28. nosetests {posargs:fuel_plugin/testing/tests/integration}
  29. [testenv:cover]
  30. setenv = NOSE_WITH_COVERAGE=1
  31. [testenv:venv]
  32. deps = -r{toxinidir}/requirements.txt
  33. commands = {posargs:}
  34. [testenv:pep8]
  35. deps = hacking==0.7
  36. usedevelop = False
  37. commands =
  38. flake8 {posargs}
  39. [flake8]
  40. exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build,tools,__init__.py,docs
  41. show-pep8 = True
  42. show-source = True
  43. count = True
  44. [hacking]
  45. import_exceptions = testtools.matchers