diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-04-15 11:30:21 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-04-15 11:46:40 +0200 |
commit | 2ac9fc8479a3909d7fb351b2976825ebe1b51bab (patch) | |
tree | 12ff51e9545195c11926c4387a40046f16a0d39d /Makefile | |
parent | 233f5642a34bf46d54978c8663fe927ee4065df3 (diff) |
Move and split test files
Remove test grouping through test classes.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 15 |
1 files changed, 11 insertions, 4 deletions
@@ -1,6 +1,9 @@ -all: *.py rtemsqual/*.py | check-env - coverage run -m pytest tests - yapf -i $^ tests/*.py +PY_SRC_FILES = $(wildcard *.py) $(wildcard rtemsqual/*.py) +PY_ALL_FILES = $(PY_SRC_FILES) $(wildcard rtemsqual/tests/*.py) + +all: $(PY_SRC_FILES) | check-env + coverage run -m pytest rtemsqual/tests + yapf -i $(PY_ALL_FILES) flake8 $^ mypy $^ pylint $^ @@ -8,8 +11,12 @@ all: *.py rtemsqual/*.py | check-env check-env: test -n "$$VIRTUAL_ENV" +EMPTY := +SPACE := $(EMPTY) $(EMPTY) +COMMA := , + coverage-report: - coverage report -m --omit 'env/*' + coverage report -m --include=$(subst $(SPACE),$(COMMA),$(PY_SRC_FILES)) .PONY: env |