fuel-qa/tox.ini
Alexey Stepanov b7ca0ff8b6 Move QuietLogger and logwrap to core
1. Move QuietLogger and logwrap to core
2. Fix QuietLogger (if log level was upper, than in param,
  QuietLogger ebabled additional logging instead of pass)
3. Cover by unit-tests
4. Added missed license text
5. add *.log to gitignore

Change-Id: If842791000c76852fe1dec1e66edcc081c278b2c
Blueprint: fuel-qa-join-helpers
2016-09-02 11:20:54 +03:00

94 lines
2.1 KiB
INI

# Tox (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
skipsdist = True
envlist = pep8, py27, pylint, docs, cover, pep8-py{34,35}, pylint-py{27}-{fuelweb,system,gates}
skip_missing_interpreters = True
[testenv]
deps =
-r{toxinidir}/fuelweb_test/requirements-devops-source.txt
-r{toxinidir}/fuelweb_test/requirements.txt
mock>=1.2
pytest>=3.0
pytest-cov
usedevelop = False
commands =
./run_system_test.py show-all-groups
# Run unit tests and coverage: groups collect does not cover API changes
py.test --cov-config .coveragerc --cov-report html --cov=core core/_tests
coverage html -d {envlogdir}
coverage report --fail-under 75
[testenv:pep8]
# TODO: #deps = hacking==0.7
deps = flake8
usedevelop = False
commands =
flake8 {posargs:.}
[testenv:pep8-py34]
# TODO: #deps = hacking==0.7
deps = flake8
usedevelop = False
commands =
flake8 {posargs:.}
[testenv:pep8-py35]
# TODO: #deps = hacking==0.7
deps = flake8
usedevelop = False
commands =
flake8 {posargs:.}
[flake8]
ignore = H302,H802
exclude = .venv,.git,.tox,dist,doc,*egg,build
show-pep8 = True
show-source = True
count = True
[testenv:pylint]
deps=
{[testenv]deps}
pylint
commands=
pylint --rcfile=.pylintrc_gerrit fuelweb_test system_test gates_tests run_system_test core
[testenv:pylint-py27-fuelweb]
deps=
{[testenv]deps}
pylint
commands=pylint fuelweb_test
[testenv:pylint-py27-system]
deps=
{[testenv]deps}
pylint
commands=pylint system_test
[testenv:pylint-py27-gates]
deps=
{[testenv]deps}
pylint
commands=pylint gates_tests
[testenv:docs]
changedir = doc
deps =
{[testenv]deps}
sphinx
commands = sphinx-build -b html -d _build/doctrees . _build/html
[testenv:cover]
deps =
{[testenv]deps}
commands =
py.test --cov-config .coveragerc --cov-report html --cov=core core/_tests
coverage html -d {envlogdir}
coverage report --fail-under 75