-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
38 lines (28 loc) · 913 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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
.PHONY: unit func gui test
s:
python manage.py runserver
hook:
cp scripts/pre-commit .git/hooks/
cp scripts/post-merge .git/hooks/
chmod +x .git/hooks/pre-commit
chmod +x .git/hooks/post-merge
unit:
python manage.py test tests/testUnit*.py -v2
func:
python manage.py test tests/testFunctional*.py -v2
gui:
python manage.py test tests/SeleniumTests/*.py
coverage:
coverage run --branch --source='core','beatmygoal' manage.py test
coverage report -m
clean:
find . -name "*.pyc" | xargs rm
local-db:
rm -f db.sqlite3
python manage.py syncdb --noinput
python manage.py createsuperuser --username=admin [email protected] --noinput
python scripts/populate_db.py
demo:
make unit
make func
python manage.py test tests/SeleniumTests/{testCreateAccount.py:EditUserTest.test_create_account,testInvite.py:FavoriteTest.testEmailPreviewExists,testEditGoal.py:EditGoalTest.testEditGoal} -v2