mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-27 17:54:32 +03:00
Run pytest as module
This commit is contained in:
parent
ecf37e59f8
commit
cdab7f2039
|
@ -7,14 +7,13 @@ sudo apt-get -qq install libfreetype6-dev liblcms2-dev python-tk\
|
||||||
python-qt4 ghostscript libffi-dev libjpeg-turbo-progs cmake imagemagick\
|
python-qt4 ghostscript libffi-dev libjpeg-turbo-progs cmake imagemagick\
|
||||||
libharfbuzz-dev libfribidi-dev
|
libharfbuzz-dev libfribidi-dev
|
||||||
|
|
||||||
|
pip install check-manifest
|
||||||
pip install cffi
|
pip install cffi
|
||||||
pip install nose # TODO remove
|
pip install coverage
|
||||||
|
pip install olefile
|
||||||
pip install pytest
|
pip install pytest
|
||||||
pip install pytest-cov
|
pip install pytest-cov
|
||||||
pip install check-manifest
|
|
||||||
pip install olefile
|
|
||||||
pip install pyroma
|
pip install pyroma
|
||||||
pip install coverage
|
|
||||||
pip install test-image-results
|
pip install test-image-results
|
||||||
|
|
||||||
# docs only on Python 2.7
|
# docs only on Python 2.7
|
||||||
|
|
|
@ -7,8 +7,7 @@ python setup.py clean
|
||||||
CFLAGS="-coverage" python setup.py build_ext --inplace
|
CFLAGS="-coverage" python setup.py build_ext --inplace
|
||||||
|
|
||||||
coverage run --append --include="PIL/*" selftest.py
|
coverage run --append --include="PIL/*" selftest.py
|
||||||
# coverage run --append --include="PIL/*" -m nose -vx Tests/test_*.py TODO remove
|
python -m pytest -vx --cov PIL --cov-append --cov-report term Tests
|
||||||
py.test -v --cov PIL --cov-append --cov-report term Tests
|
|
||||||
pushd /tmp/check-manifest && check-manifest --ignore ".coveragerc,.editorconfig,*.yml,*.yaml,tox.ini" && popd
|
pushd /tmp/check-manifest && check-manifest --ignore ".coveragerc,.editorconfig,*.yml,*.yaml,tox.ini" && popd
|
||||||
|
|
||||||
# Docs
|
# Docs
|
||||||
|
|
|
@ -11,10 +11,10 @@ docutils
|
||||||
jarn.viewdoc
|
jarn.viewdoc
|
||||||
Jinja2
|
Jinja2
|
||||||
MarkupSafe
|
MarkupSafe
|
||||||
nose
|
|
||||||
nose-cov
|
|
||||||
olefile
|
olefile
|
||||||
pycodestyle
|
pycodestyle
|
||||||
|
pytest
|
||||||
|
pytest-cov
|
||||||
pyflakes
|
pyflakes
|
||||||
Pygments
|
Pygments
|
||||||
pyroma
|
pyroma
|
||||||
|
|
Loading…
Reference in New Issue
Block a user