[wp-trac] [WordPress Trac] #17749: Faster and phpunit runner-compatible unit tests

WordPress Trac wp-trac at lists.automattic.com
Tue Jun 14 11:24:49 UTC 2011


#17749: Faster and phpunit runner-compatible unit tests
-----------------------------+------------------------------
 Reporter:  nbachiyski       |       Owner:
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Unit Tests       |     Version:
 Severity:  normal           |  Resolution:
 Keywords:  has-patch        |
-----------------------------+------------------------------

Comment (by nbachiyski):

 Replying to [comment:2 nacin]:
 > Loading WordPress in a function call will break plugins and themes.
 Eventually we may want them to be able to leverage the test suite. Or
 maybe not. But I'm not comfortable with it as it may make some tests more
 difficult.

 The patch only explicitly states what is already implied by WordPress –
 that some of the variables are global. It doesn't force WordPress to load
 inside a function call all the time.

 What aren't you comfortable with? Which test will be made more difficult?

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17749#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list