Opened 11 months ago

Last modified 10 months ago

#104 new defect

Image tests are slow

Reported by: nbachiyski Owned by: nbachiyski
Priority: normal Milestone:
Component: Images/EXIF Keywords: speed
Cc: japh@…

Description

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.

Change History (1)

  • Cc japh@… added

This may be relevant to the core ticket #6821

Note: See TracTickets for help on using tickets.