
Provide fixture object that can be used to build isolated test envs when working with git and developing git tooling that uses the git application. Some basic tests on the topological sorting to ensure nodes are returned in an expected order without requiring the code to enforce the order. Some simple acceptance tests ensure that the fixture will accept various simple graphs and handle them correctly. Change-Id: I5b39f8d52beca848adb20d646c26d91c4b977b92
40 lines
791 B
INI
40 lines
791 B
INI
[tox]
|
|
minversion = 1.8
|
|
skipsdist = True
|
|
envlist = pep8,py35,py34,py27
|
|
skip_missing_interpreters = True
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
setenv =
|
|
LANG=en_US.UTF-8
|
|
PYTHONDONTWRITEBYTECODE=1
|
|
SUBUNIT_FORMATTER=tee testr_subunit_log
|
|
VIRTUAL_ENV={envdir}
|
|
|
|
install_command = pip install -U {opts} {packages}
|
|
deps = -r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
commands =
|
|
stestr run --slowest {posargs}
|
|
|
|
[testenv:pep8]
|
|
commands = flake8
|
|
|
|
[testenv:cover]
|
|
commands =
|
|
python setup.py stestr --coverage --coverage-package-name=fixtures_git
|
|
coverage report
|
|
|
|
[testenv:docs]
|
|
commands =
|
|
python setup.py build_sphinx {posargs}
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[flake8]
|
|
ignore=H236,H40
|
|
show-source = True
|
|
exclude = .venv,.tox,dist,doc,build,*.egg
|