[wp-unit-tests] [WordPress Unit Tests] #104: Image tests are slow
WordPress Trac
wp-trac at lists.automattic.com
Sun Jul 8 13:36:44 UTC 2012
#104: Image tests are slow
-------------------------+------------------------
Reporter: nbachiyski | Owner: nbachiyski
Type: defect | Status: new
Priority: normal | Milestone:
Component: Images/EXIF | Keywords: speed
-------------------------+------------------------
Currently the tests in {{{tests/test_image.php}}} are only a few, but they
run for 3 seconds.
They're slow, because they run on actual images, but we don't actually
test parsing the image file themselves. We are testing how the functions
cope with the data given by the PHP image functions.
Solution: test only the logic in the function, not how well the PHP image
functions work.
For this we will need to refactor the WordPress image functions to allow
to be testable.
--
Ticket URL: <http://unit-tests.trac.wordpress.org/ticket/104>
WordPress Unit Tests <http://unit-tests.trac.wordpress.org>
My example project
More information about the wp-unit-tests
mailing list