Last change
on this file since 2ac9fc8 was
2ac9fc8,
checked in by Sebastian Huber <sebastian.huber@…>, on 04/15/20 at 09:30:21
|
Move and split test files
Remove test grouping through test classes.
|
-
Property mode set to
100644
|
File size:
552 bytes
|
Line | |
---|
1 | PY_SRC_FILES = $(wildcard *.py) $(wildcard rtemsqual/*.py) |
---|
2 | PY_ALL_FILES = $(PY_SRC_FILES) $(wildcard rtemsqual/tests/*.py) |
---|
3 | |
---|
4 | all: $(PY_SRC_FILES) | check-env |
---|
5 | coverage run -m pytest rtemsqual/tests |
---|
6 | yapf -i $(PY_ALL_FILES) |
---|
7 | flake8 $^ |
---|
8 | mypy $^ |
---|
9 | pylint $^ |
---|
10 | |
---|
11 | check-env: |
---|
12 | test -n "$$VIRTUAL_ENV" |
---|
13 | |
---|
14 | EMPTY := |
---|
15 | SPACE := $(EMPTY) $(EMPTY) |
---|
16 | COMMA := , |
---|
17 | |
---|
18 | coverage-report: |
---|
19 | coverage report -m --include=$(subst $(SPACE),$(COMMA),$(PY_SRC_FILES)) |
---|
20 | |
---|
21 | .PONY: env |
---|
22 | |
---|
23 | env: |
---|
24 | python3 -m venv env |
---|
25 | . env/bin/activate && pip install --upgrade pip && pip install -r requirements.txt |
---|
Note: See
TracBrowser
for help on using the repository browser.