fuel-library/utils/jenkins/tox.ini
Sebastian Kalinowski 4f12918d5b Add way to run Python tests
Added script to easily run Python tests in fuel-library.
Script is located in ./utils/jenkins/python_run_tests.sh and
uses tox to create environments and py.test as a test runner.

Usage of the script can be learn from running it with '-h' arg:
 ./python_run_tests.sh -h

Tests include running all found Python tests as well
'flake8' with 'hacking' checks in newest version.

Requirements for tests could be found in
./utils/jenkins/python-test-requirements.txt

tox.ini. is located in
./utils/jenkins/tox.ini

Disabled all flake8 checks in all currently failing files.

DocImpact
Change-Id: I283333c48ac53d7baa0a9bb04558d7317bdcec11
2015-02-20 13:12:25 +01:00

30 lines
644 B
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]
minversion = 1.8
envlist = pep8
skipsdist = True
[testenv]
deps = -r{toxinidir}/python-test-requirements.txt
commands =
py.test {posargs:../../deployment}
[testenv:venv]
commands = {posargs:}
[testenv:pep8]
deps = hacking == 0.10.1
usedevelop = False
commands =
flake8 {posargs:}
[flake8]
exclude = .venv,.git,.tox,dist,doc,docs,*egg
show-pep8 = True
show-source = True
count = True