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 *.log
*.py[cod] *.py[cod]
*~ *~
.coverage
.DS_Store .DS_Store
.hypothesis .hypothesis
.idea .idea

View file

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

View file

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