WordPress.org

Make WordPress Core

Opened 22 months ago

Last modified 21 months ago

#104 new defect

Image tests are slow

Reported by: nbachiyski Owned by: nbachiyski
Milestone: Priority: normal
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)

comment:1 Japh21 months ago

  • Cc japh@… added

This may be relevant to the core ticket #6821

Note: See TracTickets for help on using tickets.