mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-03 21:24:31 +03:00
Update test instructions
[CI skip]
This commit is contained in:
parent
408e7335b3
commit
884280d0e5
|
@ -3,17 +3,21 @@ Pillow Tests
|
|||
|
||||
Test scripts are named ``test_xxx.py`` and use the ``unittest`` module. A base class and helper functions can be found in ``helper.py``.
|
||||
|
||||
Depedencies
|
||||
-----------
|
||||
|
||||
pip install coverage nose
|
||||
|
||||
|
||||
Execution
|
||||
---------
|
||||
|
||||
Run the tests from the root of the Pillow source distribution::
|
||||
|
||||
python selftest.py
|
||||
nosetests Tests/test_*.py
|
||||
|
||||
Or with coverage::
|
||||
|
||||
coverage run --append --include=PIL/* selftest.py
|
||||
coverage run --append --include=PIL/* -m nose Tests/test_*.py
|
||||
coverage report
|
||||
coverage html
|
||||
|
@ -22,3 +26,4 @@ Or with coverage::
|
|||
To run an individual test::
|
||||
|
||||
python Tests/test_image.py
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user