Skip to content

Commit

Permalink
test: replace coverage command (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
miketheman committed Dec 23, 2021
1 parent 72dde03 commit 8921ea8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ jobs:
- name: Prepare project for development
run: poetry install
- name: Test with pytest
run: poetry run pytest
run: poetry run coverage run -m pytest ; coverage report --show-missing
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ endif
@touch $(INSTALL_STAMP)

test: $(INSTALL_STAMP)
@poetry run pytest $(PYTEST_FLAGS)
@poetry run coverage run -m pytest $(PYTEST_FLAGS) ; coverage report --show-missing

dist: clean $(INSTALL_STAMP)
@poetry build
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ readme = "README.md"
homepage = "https://pypi.org/project/pytest-socket/"
repository = "https://github.com/miketheman/pytest-socket"
include = [
"LICENSE",
"README.md",
{ path = "LICENSE" },
{ path = "README.md" },
{ path = "tests", format = "sdist" },
{ path = "pytest.ini", format = "sdist" },
{ path = ".coveragerc", format = "sdist" },
Expand All @@ -35,8 +35,8 @@ python = "^3.7"
pytest = ">=3.6.3"

[tool.poetry.dev-dependencies]
coverage = "^6.2"
pytest = "^6.0"
pytest-cov = "^2.8.1"
pytest-httpbin = "^1.0"
pytest-randomly = "^3.5.0"
asynctest = "^0.13.0"
Expand Down
4 changes: 0 additions & 4 deletions pytest.ini

This file was deleted.

0 comments on commit 8921ea8

Please sign in to comment.