-
Notifications
You must be signed in to change notification settings - Fork 101
/
Makefile
23 lines (16 loc) · 649 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
TESTS=tests authtools
SETTINGS=tests.sqlite_test_settings
COVERAGE_COMMAND=
test: test-builtin test-authtools test-customuser
test-builtin:
cd tests && DJANGO_SETTINGS_MODULE=$(SETTINGS) $(COVERAGE_COMMAND) ./manage.py test --traceback $(TESTS) --verbosity=2
test-authtools:
+AUTH_USER_MODEL='authtools.User' make test-builtin
test-customuser:
+AUTH_USER_MODEL='tests.User' make test-builtin
coverage:
+make test COVERAGE_COMMAND='coverage run --source=authtools --branch --parallel-mode'
cd tests && coverage combine && coverage html
docs:
cd docs && $(MAKE) html
.PHONY: test test-builtin test-authtools test-customuser coverage docs