[wp-trac] [WordPress Trac] #54725: Test tool and unit test improvements for 6.0

WordPress Trac noreply at wordpress.org
Mon May 23 11:54:43 UTC 2022

#54725: Test tool and unit test improvements for 6.0
 Reporter:  hellofromTonya            |       Owner:  (none)
     Type:  task (blessed)            |      Status:  closed
 Priority:  normal                    |   Milestone:  6.0
Component:  Build/Test Tools          |     Version:
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:

Comment (by hellofromTonya):

 In [changeset:"53430" 53430]:
 #!CommitTicketReference repository="" revision="53430"
 Build/Test Tools: Fix comments odd/even instabilities (test leaks).

 The odd / even class attribute global variables are causing issues in
 comments tests when a new test is added or an existing test is modified.
 To stabilize the odd / even comment tests, the comment global variables
 are added to the base test class' `tear_down()` using the same patterns as
 the other global resets. This change ensures each comment test starts at
 the same state. In doing so, the expected odd / even class attributes are
 no longer affected by previous tests, i.e. test leaks.

 Follow-up to [53172].

 Props hellofromTonya, zieladam, peterwilsoncc.
 See #54725.

Ticket URL: <https://core.trac.wordpress.org/ticket/54725#comment:32>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list