Skip to content

Commit

Permalink
Show code coverage for tests (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
ogenstad authored Nov 27, 2020
1 parent 3bcccc0 commit 471cf9d
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 15 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ NAME=$(shell basename $(PWD))
PYTHON:=3.7

DOCKER=docker run \
--rm -ir \
--rm -it \
--name $(NAME)-tests \
-v $(PWD):/$(NAME) \
--rm $(NAME):latest
Expand All @@ -19,7 +19,7 @@ docker:

.PHONY: pytest
pytest:
poetry run pytest -vs ${ARGS} .
poetry run pytest --cov=nornir_napalm --cov-report=term-missing -vs ${ARGS} .
poetry run pytest --nbval -vs ${ARGS} docs/source/tutorials

.PHONY: black
Expand Down
39 changes: 26 additions & 13 deletions poetry.lock

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

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ nbsphinx = "^0.6.1"
sphinx-issues = "^1.2.0"
sphinx_rtd_theme = "^0.4.3"
nornir_utils = { version = "*", allow-prereleases = true }
pytest-cov = "^2.10.1"


[build-system]
Expand Down

0 comments on commit 471cf9d

Please sign in to comment.