Provides a simple tool 'build-test-tree' and adds a tox environment command 'build-tree' which takes as arguments a list of yaml files separated by spaces of test trees to recreate for the developer to experiment with different layouts and commands. This simplifies the creation for development purposes some of the complex scenarios that need to be tested, to provide a mechanism for any developer to quickly exercise various git commands directly to understand the impact before trying to apply such changes to the existing code. Example execution: tox -e build-tree -- git_upstream/tests/commands/import/scenarios/\ import_switch_branches_search_ref_custom_namespace.yaml Change-Id: I801bc3e05197d1ce41e703876ce6f46a705ad935
35 lines
742 B
INI
35 lines
742 B
INI
[tox]
|
|
minversion = 1.6
|
|
skipsdist = True
|
|
envlist = pep8,py34,py27
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
install_command = pip install {opts} {packages}
|
|
deps = -r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
commands =
|
|
python setup.py testr --slowest --testr-args='{posargs}'
|
|
|
|
[testenv:pep8]
|
|
commands = flake8
|
|
|
|
[testenv:cover]
|
|
commands =
|
|
python setup.py test --coverage --coverage-package-name=git_upstream
|
|
coverage report --omit=git_upstream/tests/**
|
|
|
|
[testenv:docs]
|
|
commands = python setup.py build_manpage
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:build-tree]
|
|
commands = python git_upstream/tests/build-test-tree.py {posargs}
|
|
|
|
[flake8]
|
|
ignore=H236,H40
|
|
show-source = True
|
|
exclude = .venv,.tox,dist,doc,build,*.egg
|