2014-06-24 15:03:10 +04:00
|
|
|
Pillow test files.
|
2012-10-16 00:26:38 +04:00
|
|
|
|
2014-06-24 15:03:10 +04:00
|
|
|
Test scripts are named `test_xxx.py` and use the `unittest` module. A base class and helper functions can be found in `helper.py`.
|
2013-03-16 00:47:14 +04:00
|
|
|
|
|
|
|
Run the tests from the root of the Pillow source distribution:
|
|
|
|
|
|
|
|
python selftest.py
|
2014-06-24 15:03:10 +04:00
|
|
|
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
|
2013-03-16 00:47:14 +04:00
|
|
|
|
|
|
|
To run an individual test:
|
|
|
|
|
|
|
|
python Tests/test_image.py
|