From c1612c81824e3bf0eaa896bf18ad61998e90e5b7 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Fri, 10 May 2019 00:40:22 -0400 Subject: [PATCH] Add clean step to test targets Signed-off-by: Roberto Rosario --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a7a696e9b4..af3688defd 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,6 @@ clean-build: ## Remove build artifacts. rm -fr *.egg-info clean-pyc: ## Remove Python artifacts. - find . -name '*.pyc' -exec rm -f {} + find . -name '*.pyo' -exec rm -f {} + find . -name '*~' -exec rm -f {} + @@ -22,10 +21,12 @@ clean-pyc: ## Remove Python artifacts. # Testing +test: clean-pyc test: ## MODULE= - Run tests for a single app, module or test class. ./manage.py test $(MODULE) --settings=mayan.settings.testing.development --nomigrations $(ARGUMENTS) test-all: ## Run all tests. +test-all: clean-pyc ./manage.py test --mayan-apps --settings=mayan.settings.testing.development --nomigrations $(ARGUMENTS) test-launch-postgres: