summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-04-15 11:30:21 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-04-15 11:46:40 +0200
commit2ac9fc8479a3909d7fb351b2976825ebe1b51bab (patch)
tree12ff51e9545195c11926c4387a40046f16a0d39d /Makefile
parent233f5642a34bf46d54978c8663fe927ee4065df3 (diff)
Move and split test files
Remove test grouping through test classes.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 11 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 60cd7711..56263258 100644
--- a/Makefile
+++ b/Makefile
@@ -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