Pillow/Tests/README.rst

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
542 B
ReStructuredText
Raw Normal View History

2014-06-27 16:44:28 +04:00
Pillow Tests
============
Test scripts are named ``test_xxx.py``. Helper classes and functions can be found in ``helper.py``.
2015-03-02 01:28:24 +03:00
Dependencies
2019-08-17 13:32:24 +03:00
------------
2014-08-08 14:51:06 +04:00
2014-08-08 14:54:14 +04:00
Install::
python3 -m pip install pytest pytest-cov pytest-timeout
2014-08-08 14:51:06 +04:00
2014-06-27 16:44:28 +04:00
Execution
---------
2014-08-12 17:37:49 +04:00
To run an individual test::
pytest Tests/test_image.py
Or::
pytest -k test_image.py
2014-08-12 17:37:49 +04:00
Run all the tests from the root of the Pillow source distribution::
pytest
2014-06-27 16:44:53 +04:00
Or with coverage::
pytest --cov PIL --cov Tests --cov-report term
coverage html
open htmlcov/index.html