mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-13 05:06:49 +03:00
Help for testing
This commit is contained in:
parent
0ac0e973f0
commit
3834d01044
31
Makefile
31
Makefile
|
@ -1,3 +1,5 @@
|
||||||
|
|
||||||
|
|
||||||
pre:
|
pre:
|
||||||
virtualenv .
|
virtualenv .
|
||||||
bin/pip install -r requirements.txt
|
bin/pip install -r requirements.txt
|
||||||
|
@ -9,3 +11,32 @@ pre:
|
||||||
check-manifest
|
check-manifest
|
||||||
pyroma .
|
pyroma .
|
||||||
viewdoc
|
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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user