Pillow/Tests/README.rst

25 lines
563 B
ReStructuredText
Raw Normal View History

2014-06-27 16:44:28 +04:00
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`.
2014-06-27 16:44:28 +04:00
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
open htmlcov/index.html
To run an individual test:
python Tests/test_image.py