[wp-unit-tests] [WordPress Unit Tests] #49: Need a way to force known bugs

WordPress Trac wp-trac at lists.automattic.com
Mon Jul 9 19:35:07 UTC 2012

#49: Need a way to force known bugs
 Reporter:  nacin           |       Owner:
     Type:  defect          |      Status:  new
 Priority:  high            |   Milestone:  Implement New Test Runner
Component:  Test Framework  |  Resolution:
 Keywords:                  |

Comment (by bpetty):

 It's possible to implement these as command line options using Phing,
 however, it's not going to be as elegant unfortunately. For example,
 `"phing -DWP_DEBUG"` would be equivalent to `"php wp-test.php -d"`. On the
 other hand, it doesn't have to be the same name as the actual constant, so
 it could be `"phing -Dd"` for debug, or `"phing -Ds"` for save queries,
 just as long as it doesn't conflict with the built-in properties:


 The bad news is that since PHP can't set environment variables, a custom
 Phing task would need to be written to dynamically build the PHPUnit XML
 file with the appropriate settings to configure the PHP constants right
 before running it.

Ticket URL: <https://unit-test.trac.wordpress.org/ticket/49#comment:5>
WordPress Unit Tests <https://unit-test.trac.wordpress.org>
My example project

More information about the wp-unit-tests mailing list