forked from luismayta/luca
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtests.mk
More file actions
24 lines (20 loc) · 673 Bytes
/
tests.mk
File metadata and controls
24 lines (20 loc) · 673 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#
# See ./CONTRIBUTING.rst
#
DOCKER_TEST := docker-compose -f docker-compose.yml -f docker-compose/test.yml
test: clean
@echo $(MESSAGE) Running tests on the current Python interpreter with coverage $(END)
$(DOCKER_TEST) run --rm app \
bash -c "py.test --cov lannister --cov tests --doctest-modules --verbose lannister tests";
@echo
test.lint: clean
pre-commit run --all-files --verbose
test.pytest: clean
@echo $(MESSAGE) Running tests on the current Python $(END)
@if [ "${test}" == "" ]; then \
$(DOCKER_TEST) run --rm app \
bash -c "py.test -s lannister tests"; \
else \
$(DOCKER_TEST) run --rm app \
bash -c "py.test -s -v tests/${test}"; \
fi