diff --git a/Makefile.local b/Makefile.local index 04a1ae1c..79e213c5 100644 --- a/Makefile.local +++ b/Makefile.local @@ -1,51 +1,52 @@ TEST_DIRS := ./swh/web/tests -TESTFAST_FLAGS = --hypothesis-profile=swh-web-fast +TESTFLAGS = --hypothesis-profile=swh-web-fast +TESTFULL_FLAGS = --hypothesis-profile=swh-web YARN ?= yarn yarn-install: package.json $(YARN) install .PHONY: build-webpack-dev build-webpack-dev: yarn-install $(YARN) build-dev .PHONY: build-webpack-dev-no-verbose build-webpack-dev-no-verbose: yarn-install $(YARN) build-dev >/dev/null .PHONY: build-webpack-prod build-webpack-prod: yarn-install $(YARN) build .PHONY: run-migrations run-migrations: python3 swh/web/manage.py migrate 2>/dev/null python3 swh/web/manage.py createcachetable 2>/dev/null .PHONY: run-migrations-prod run-migrations-prod: django-admin migrate --settings=swh.web.settings.production 2>/dev/null django-admin createcachetable --settings=swh.web.settings.production 2>/dev/null run-django-webpack-devserver: run-migrations yarn-install bash -c "trap 'trap - SIGINT SIGTERM ERR; kill %1' SIGINT SIGTERM ERR; $(YARN) start-dev & cd swh/web && python3 manage.py runserver --nostatic" run-django-webpack-dev: build-webpack-dev run-migrations python3 swh/web/manage.py runserver --nostatic run-django-webpack-prod: build-webpack-prod run-migrations-prod python3 swh/web/manage.py runserver --nostatic --settings=swh.web.settings.production run-django-server-dev: run-migrations python3 swh/web/manage.py runserver --nostatic run-django-server-prod: run-migrations-prod python3 swh/web/manage.py runserver --nostatic --settings=swh.web.settings.production run-gunicorn-server: run-migrations gunicorn3 -b 127.0.0.1:5004 swh.web.wsgi -test-fast: - $(TEST) $(TESTFAST_FLAGS) $(TEST_DIRS) +test-full: + $(TEST) $(TESTFULL_FLAGS) $(TEST_DIRS)