[wp-trac] [WordPress Trac] #63532: Unit Testing: Checking if images already exists before starting tests

WordPress Trac noreply at wordpress.org
Thu Jun 5 15:26:33 UTC 2025


#63532: Unit Testing: Checking if images already exists before starting tests
-------------------------------------------------+-------------------------
 Reporter:  SirLouen                             |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  reopened
 Priority:  normal                               |   Milestone:  6.9
Component:  Media                                |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-test-info has-patch has-unit-    |     Focuses:  tests
  tests                                          |
-------------------------------------------------+-------------------------

Comment (by SirLouen):

 Replying to [comment:9 johnbillion]:
 > What's the cause of a pre-existing image existing in the first place?
 Does that happen if you cancel the command while the tests are running and
 before it's had a chance to clean up? I remember that happening in the
 past, eg. #51735.

 I'm not 100% sure. I was running some unit tests on media that actually
 used that image. At some point, it might have not wrapped the image and
 left it as a leftover (maybe because I cancelled the tests during
 execution or something like that). Then I started to freakout because I
 was completely unable to make the media tests work again, and I would
 rather not delete the `wordpress-develop` directory. So I decided to dig
 until I got to this issue.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/63532#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list