Use pytest.ini to maintain options
... to simplify defenition in tox.ini . Change-Id: I97d862d80905b4d183b91b00a016662125c90441 Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
[build-system]
|
||||
requires = ["pbr>=6.1.1"]
|
||||
build-backend = "pbr.build"
|
||||
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
[pytest]
|
||||
minversion = 6.0
|
||||
testpaths =
|
||||
wsme/tests
|
||||
tests/pecantest
|
||||
tests/test_flask.py
|
||||
tests/test_sphinxext.py
|
||||
@@ -3,6 +3,6 @@ pecan
|
||||
sphinx>=3.0.0 # BSD
|
||||
Flask
|
||||
Flask-RESTful # BSD
|
||||
pytest # MIT
|
||||
pytest>=6.0.0 # MIT
|
||||
pytest-cov # MIT
|
||||
WebTest # MIT
|
||||
|
||||
@@ -6,12 +6,12 @@ envlist = py3,coverage,pep8
|
||||
deps =
|
||||
-r test-requirements.txt
|
||||
commands =
|
||||
pytest wsme/tests tests/pecantest tests/test_sphinxext.py tests/test_flask.py
|
||||
pytest {posargs}
|
||||
|
||||
[testenv:coverage]
|
||||
commands =
|
||||
coverage erase
|
||||
pytest --cov=wsme --cov=wsmeext wsme/tests tests/pecantest tests/test_sphinxext.py tests/test_flask.py
|
||||
pytest --cov=wsme --cov=wsmeext {posargs}
|
||||
coverage xml
|
||||
coverage report --show-missing
|
||||
|
||||
|
||||
Reference in New Issue
Block a user