Enable unit test
Change-Id: Ib790076d775a3ab565f1334152e50cbc13244b0a
This commit is contained in:
parent
3e6ff99a1a
commit
b669e6b1a5
3
.stestr.conf
Normal file
3
.stestr.conf
Normal file
@ -0,0 +1,3 @@
|
||||
[DEFAULT]
|
||||
test_path=./venus/tests
|
||||
top_dir=./
|
20
tox.ini
20
tox.ini
@ -8,14 +8,18 @@ basepython = python3
|
||||
# Note the hash seed is set to 0 until venus can be tested with a
|
||||
# random hash seed successfully.
|
||||
setenv = VIRTUAL_ENV={envdir}
|
||||
PYTHONHASHSEED=0
|
||||
OS_TEST_PATH=venus/tests/unit
|
||||
usedevelop = True
|
||||
install_command = pip install {opts} {packages}
|
||||
|
||||
deps =
|
||||
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
|
||||
-r{toxinidir}/requirements.txt
|
||||
-r{toxinidir}/test-requirements.txt
|
||||
|
||||
commands = rm -f .testrepository/times.dbm
|
||||
stestr run --slowest {posargs}
|
||||
|
||||
[testenv:releasenotes]
|
||||
deps = -r{toxinidir}/doc/requirements.txt
|
||||
commands = sphinx-build -a -E -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|
||||
@ -26,6 +30,20 @@ commands =
|
||||
# Check that .po and .pot files are valid:
|
||||
doc8 --ignore D001 doc/source/ CONTRIBUTING.rst HACKING.rst README.rst
|
||||
|
||||
[testenv:venv]
|
||||
commands = {posargs}
|
||||
|
||||
[testenv:cover]
|
||||
setenv =
|
||||
PYTHON=coverage run --source cyborg --parallel-mode
|
||||
commands =
|
||||
coverage erase
|
||||
stestr run {posargs}
|
||||
coverage combine
|
||||
coverage html -d cover
|
||||
coverage xml -o cover/coverage.xml
|
||||
coverage report
|
||||
|
||||
[doc8]
|
||||
ignore-path = .venv,.git,.tox,*venus/locale*,*lib/python*,*venus.egg*,api-ref/build,doc/build,doc/source/contributor/api
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user