From 3834d01044c360d58fb4a1939006089b9f724b26 Mon Sep 17 00:00:00 2001 From: wiredfool Date: Fri, 27 Jun 2014 12:07:53 -0700 Subject: [PATCH] Help for testing --- Makefile | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/Makefile b/Makefile index 4f6a00711..0637e901f 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,5 @@ + + pre: virtualenv . bin/pip install -r requirements.txt @@ -9,3 +11,32 @@ pre: check-manifest pyroma . viewdoc + +clean: + python setup.py clean + rm PIL/*.so || true + find . -name __pycache__ | xargs rm -r + +install: + python setup.py install + python selftest.py --installed + +test: install + python test-installed.py + +inplace: clean + python setup.py build_ext --inplace + +coverage: +# requires nose-cov + coverage erase + coverage run --parallel-mode --include=PIL/* selftest.py + nosetests --with-cov --cov='PIL/' --cov-report=html Tests/test_*.py +# doesn't combine properly before report, +# writing report instead of displaying invalid report + rm -r htmlcov || true + coverage combine + coverage report + +test-dep: + pip install coveralls nose nose-cov pep8 pyflakes