Skip to content

Commit

Permalink
makefile: run pytests via tox
Browse files Browse the repository at this point in the history
Prefer tox with all its glory over raw shell command. Use top-level
Makefile as an easy wrapper over tox. Assuming tox is already installed
on local-host/local-user.

Signed-off-by: Shachar Sharon <ssharon@ibm.com>
  • Loading branch information
Shachar Sharon authored and spuiuk committed Sep 15, 2023
1 parent a377089 commit d8f14a1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ define runtox
@cd "$(ROOT_DIR)" && tox -e $1
endef

.PHONY: test
test:
@pytest -v `cat testcases/tests|sed 's/^/testcases\//'`
$(call runtox, "pytest")

.PHONY: sanity_test
sanity_test:
@pytest -v testcases/consistency

.PHONY: test sanity_test
$(call runtox, "sanity")

.PHONY: check-mypy
check-mypy:
Expand Down

0 comments on commit d8f14a1

Please sign in to comment.