summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPyry Heiskanen <pyry.heiskanen@gmail.com>2019-04-06 15:12:14 +0300
committerPyry Heiskanen <pyry.heiskanen@gmail.com>2019-04-06 15:12:14 +0300
commitab9c02fd365dde7c4f26ff57898410504e03b895 (patch)
treed09136f905b1ac54d5660e290537a1cb81e35b53 /Makefile
parenta3a95bc0c1a290ae944e01baceb6a2380e1693b6 (diff)
downloadickapi-ab9c02fd365dde7c4f26ff57898410504e03b895.tar.gz
Implement apitest with aiohttp-pytestpyry/apitest
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index e7ec035..1aa1e36 100644
--- a/Makefile
+++ b/Makefile
@@ -12,7 +12,12 @@ lint:
pycodestyle ickapi
pylint -j0 -d missing-docstring ickapi
-test: lint
+apitest:
+ gunicorn --config gunicorn.conf ickapi.main:app > /dev/null 2>&1 &
+ pytest --rootdir=apitest || true
+ pkill -F ickapi.pid
+
+test: lint apitest
run:
gunicorn --config gunicorn.conf --reload ickapi.main:app
@@ -25,4 +30,4 @@ clean:
reset: clean
rm -rf env/
-.PHONY: all env lint test run clean reset
+.PHONY: all env lint apitest test run clean reset