Fuel tests
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 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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. skipsdist = True
  7. envlist = pep8, py27, pylint, docs, cover, pep8-py{34,35}, pylint-py{27}-{fuelweb,system,gates,fuel}
  8. skip_missing_interpreters = True
  9. [testenv]
  10. deps =
  11. -r{toxinidir}/fuelweb_test/requirements-devops-source.txt
  12. -r{toxinidir}/fuelweb_test/requirements.txt
  13. mock>=1.2
  14. pytest-cov
  15. usedevelop = False
  16. commands =
  17. ./run_system_test.py show-all-groups
  18. # Run unit tests and coverage: groups collect does not cover API changes
  19. py.test --cov-config .coveragerc --cov-report html --cov=core core/_tests
  20. coverage html -d {envlogdir}
  21. coverage report --fail-under 75
  22. [testenv:pep8]
  23. # TODO: #deps = hacking==0.7
  24. deps = flake8
  25. usedevelop = False
  26. commands =
  27. flake8 {posargs:.}
  28. [testenv:pep8-py34]
  29. # TODO: #deps = hacking==0.7
  30. deps = flake8
  31. usedevelop = False
  32. commands =
  33. flake8 {posargs:.}
  34. [testenv:pep8-py35]
  35. # TODO: #deps = hacking==0.7
  36. deps = flake8
  37. usedevelop = False
  38. commands =
  39. flake8 {posargs:.}
  40. [flake8]
  41. ignore = H302,H802
  42. exclude = .venv,.git,.tox,dist,doc,*egg,build
  43. show-pep8 = True
  44. show-source = True
  45. count = True
  46. [testenv:pylint]
  47. deps=
  48. {[testenv]deps}
  49. pylint
  50. commands=
  51. pylint --rcfile=.pylintrc_gerrit fuelweb_test system_test gates_tests fuel_tests run_system_test core
  52. [testenv:pylint-py27-fuelweb]
  53. deps=
  54. {[testenv]deps}
  55. pylint
  56. commands=pylint fuelweb_test
  57. [testenv:pylint-py27-system]
  58. deps=
  59. {[testenv]deps}
  60. pylint
  61. commands=pylint system_test
  62. [testenv:pylint-py27-gates]
  63. deps=
  64. {[testenv]deps}
  65. pylint
  66. commands=pylint gates_tests
  67. [testenv:pylint-py27-fuel]
  68. deps=
  69. {[testenv]deps}
  70. pylint
  71. commands=pylint fuel_tests
  72. [testenv:docs]
  73. changedir = doc
  74. deps =
  75. {[testenv]deps}
  76. sphinx
  77. commands = sphinx-build -b html -d _build/doctrees . _build/html
  78. [testenv:cover]
  79. deps =
  80. {[testenv]deps}
  81. commands =
  82. py.test --cov-config .coveragerc --cov-report html --cov=core core/_tests
  83. coverage html -d {envlogdir}
  84. coverage report --fail-under 75