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.

Signed-off-by: Shachar Sharon <ssharon@ibm.com>
  • Loading branch information
Shachar Sharon committed Sep 12, 2023
1 parent 48d97e1 commit ed03976
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 ed03976

Please sign in to comment.