[wp-trac] [WordPress Trac] #25282: Unit Tests should run in Debug mode

WordPress Trac noreply at wordpress.org
Thu Sep 12 14:52:45 UTC 2013


#25282: Unit Tests should run in Debug mode
----------------------------+--------------------
 Reporter:  wonderboymusic  |       Owner:
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  3.7
Component:  Unit Tests      |     Version:  trunk
 Severity:  normal          |  Resolution:
 Keywords:                  |
----------------------------+--------------------

Comment (by nacin):

 I like [25402]. To take it further, what do we think about something like
 an annotation?

 {{{
  * @expectedDeprecated get_themes
  * @expectedDeprecated get_theme
 }}}

 It could be applied to a single test, or to an entire class. But, it would
 be ''enforced'' as an assertion. If a test marked with this annotation
 stopped triggering a deprecated error for get_themes(), the test would
 fail.

 We could implement this the same way PHPUnit implements
 @expectedException.

 Any uncaught/unexpected deprecated notice should then cause the test to
 fail, regardless of WP_DEBUG.

 Let's not rush to a follow-up commit on this; take our time to figure out
 if it's what we want to do.

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


More information about the wp-trac mailing list