set up stestr
include a stub test file just so that stestr doesn't error out because there are no tests Change-Id: Id4a9e1dfecca8f52ac03f7a7b68af95dcea42c50 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
parent
33601a70d8
commit
ab4cd7d192
|
@ -19,3 +19,4 @@ dist/
|
||||||
|
|
||||||
# Files created by releasenotes build
|
# Files created by releasenotes build
|
||||||
releasenotes/build
|
releasenotes/build
|
||||||
|
/.stestr/
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
[DEFAULT]
|
||||||
|
test_path=./goal_tools/tests/
|
||||||
|
top_dir=./
|
|
@ -0,0 +1,19 @@
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
||||||
|
# not use this file except in compliance with the License. You may obtain
|
||||||
|
# a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||||
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||||
|
# License for the specific language governing permissions and limitations
|
||||||
|
# under the License.
|
||||||
|
|
||||||
|
import unittest
|
||||||
|
|
||||||
|
|
||||||
|
class TestStub(unittest.TestCase):
|
||||||
|
|
||||||
|
def test(self):
|
||||||
|
pass
|
|
@ -0,0 +1,7 @@
|
||||||
|
coverage!=4.4,>=4.0 # Apache-2.0
|
||||||
|
fixtures>=3.0.0 # Apache-2.0/BSD
|
||||||
|
python-subunit>=1.0.0 # Apache-2.0/BSD
|
||||||
|
requests-mock>=1.2.0 # Apache-2.0
|
||||||
|
stestr>=1.0.0 # Apache-2.0
|
||||||
|
testscenarios>=0.4 # Apache-2.0/BSD
|
||||||
|
testtools>=2.2.0 # MIT
|
13
tox.ini
13
tox.ini
|
@ -1,16 +1,21 @@
|
||||||
[tox]
|
[tox]
|
||||||
minversion = 2.0
|
minversion = 2.0
|
||||||
distribute = False
|
|
||||||
envlist = py35,pep8
|
envlist = py35,pep8
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
basepython = python3
|
basepython = python3
|
||||||
install_command = pip install {opts} {packages}
|
install_command = pip install {opts} {packages}
|
||||||
|
usedevelop = True
|
||||||
deps =
|
deps =
|
||||||
-r{toxinidir}/requirements.txt
|
-r{toxinidir}/requirements.txt
|
||||||
# commands =
|
-r{toxinidir}/test-requirements.txt
|
||||||
# python setup.py test --coverage --coverage-package-name=oslo_config --slowest --testr-args='{posargs}'
|
setenv =
|
||||||
# coverage report --show-missing
|
PYTHON=coverage run --source goal_tools --parallel-mode
|
||||||
|
commands =
|
||||||
|
stestr run {posargs}
|
||||||
|
stestr slowest
|
||||||
|
coverage combine
|
||||||
|
coverage html -d cover
|
||||||
|
|
||||||
[testenv:pep8]
|
[testenv:pep8]
|
||||||
deps =
|
deps =
|
||||||
|
|
Loading…
Reference in New Issue