Skip to content

Commit

Permalink
Add pytest coverage and timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
Jure Bajic committed May 25, 2021
1 parent 77dd03c commit 6daf18b
Show file tree
Hide file tree
Showing 4 changed files with 116 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[run]
branch = True
omit = */__init__.py

[report]
exclude_lines =
pragma: no cover
def __str__
def __repr__
if __name__ == .__main__.:
104 changes: 103 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ pymgclient = "^1.0.0"
black = "^21.5b1"
pytest = "^6.2.4"
pytest-black = "^0.3.12"
pytest-cov = "^2.12.0"
pytest-flake8 = "^1.0.7"
pytest-timeout = "^1.4.2"

[build-system]
requires = ["poetry-core>=1.0.0"]
Expand Down
1 change: 1 addition & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ addopts =
-vv --quiet --maxfail=10
--black
--flake8
--cov-report html --cov-report term --cov=gqlalchemy
timeout = 300
python_files = test_*.py
testpaths = tests gqlalchemy

0 comments on commit 6daf18b

Please sign in to comment.