Skip to content

Commit

Permalink
removed pytest-cov for test group
Browse files Browse the repository at this point in the history
  • Loading branch information
trabem committed Jul 9, 2023
1 parent 84bb0fd commit 501352c
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 27 deletions.
23 changes: 23 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
.PHONY: unittests
unittests:
coverage run -m pytest

.PHONY: tests
tests: unittests
coverage report

.PHONY: cov-html
cov-html: unittests
coverage html

.PHONY: cov-xml
cov-xml: unittests
coverage xml

.PHONY: pre-commit
pre-commit:
pre-commit run

.PHONY: format
format:
pre-commit run --all-files
23 changes: 1 addition & 22 deletions poetry.lock

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

11 changes: 6 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ python = "^3.8"

[tool.poetry.group.test.dependencies]
pytest = "^7.4.0"
pytest-cov = "^4.1.0"
pytest-asyncio = "^0.21.0"
coverage = "^7.2.7"
ruff = "^0.0.275"
Expand All @@ -52,14 +51,16 @@ build-backend = "poetry.core.masonry.api"
asyncio_mode = "auto"
xfail_strict = true
junit_family = "xunit2"
addopts = [
"--cov=event_dispatcher",
"--cov-branch",
]
testpaths = [
"tests"
]

[tool.coverage.run]
branch = true
source = [
"event_dispatcher"
]

[tool.ruff]
line-length = 100
src = ["event_dispatcher", "tests", "examples"]
Expand Down

0 comments on commit 501352c

Please sign in to comment.