Add code coverage reporting

This commit is contained in:
Correl Roush 2020-11-26 00:13:04 -05:00
parent bcf128e69d
commit 2b2b423b7b
3 changed files with 10 additions and 2 deletions

1
.gitignore vendored
View file

@ -3,6 +3,7 @@
*.log
*.py[cod]
*~
.coverage
.DS_Store
.hypothesis
.idea

View file

@ -16,15 +16,17 @@ openapi-core = "^0.13.4"
[tool.poetry.dev-dependencies]
black = { version = "*", allow-prereleases = true }
coverage = "*"
mypy = "*"
hypothesis = "*"
flake8 = "*"
pytest = "*"
pytest-cov = "*"
pytest-flake8 = "*"
pytest-mypy = "*"
[tool.pytest.ini_options]
addopts = "--flake8 --mypy"
addopts = "--cov=tornado_openapi3 --flake8 --mypy"
[build-system]
requires = ["poetry>=0.12"]

View file

@ -7,11 +7,16 @@ deps =
tornado4: tornado>=4,<5
tornado5: tornado>=5,<6
tornado6: tornado>=6,<7
codecov
mypy
hypothesis
flake8
pytest
pytest-cov
pytest-flake8
pytest-mypy
passenv = CI TRAVIS TRAVIS_*
whitelist_externals = poetry
commands = py.test
commands =
pytest
codecov