forked from lucky/staticgenerator
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
30 lines (26 loc) · 996 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
clean:
@echo "Cleaning up build and *.pyc files..."
@find . -name '*.pyc' -exec rm -rf {} \;
@rm -rf build
@echo "removing (.coverage)"
@rm -f .coverage
@echo "removing (test_data)"
@rm -rf `pwd`/test_data
@echo "Done!"
test: clean
@echo "Running all tests..."
@mkdir `pwd`/test_data
@export PYTHONPATH=`pwd`:`pwd`/staticgenerator::$$PYTHONPATH && \
nosetests -d -s --verbose --with-coverage --cover-inclusive --cover-package=staticgenerator \
staticgenerator/tests
unit: clean
@echo "Running unit tests..."
@export PYTHONPATH=`pwd`:`pwd`/staticgenerator::$$PYTHONPATH && \
nosetests -d -s --verbose --with-coverage --cover-inclusive --cover-package=staticgenerator \
staticgenerator/tests/unit
functional: clean
@echo "Running unit tests..."
@mkdir `pwd`/test_data
@export PYTHONPATH=`pwd`:`pwd`/staticgenerator::$$PYTHONPATH && \
nosetests -d -s --verbose --with-coverage --cover-inclusive --cover-package=staticgenerator \
staticgenerator/tests/functional