[wp-unit-tests] [WordPress Unit Tests] #39: Establish convention for testing plugins

WordPress Trac wp-trac at lists.automattic.com
Fri Jul 6 15:24:35 UTC 2012


#39: Establish convention for testing plugins
----------------------------+----------------------------------------
 Reporter:  gcorne          |       Owner:
     Type:  enhancement     |      Status:  new
 Priority:  normal          |   Milestone:  Implement New Test Runner
Component:  Test Framework  |  Resolution:
 Keywords:                  |
----------------------------+----------------------------------------

Comment (by gcorne):

 You are probably right. The reason why I chose to use both a directory and
 a filename prefix is that I wanted to make it possible for plugin authors
 to include other code within the test directory and manage the
 dependencies themselves.

 The two requirements that I would like to see met are:

 1) Tests for plugins can be kept within the source code of the plugin or
 theme
 2) The test runner includes some sort of mechanism for automatically
 discovering the tests based on configuration of the active plugins (wp-
 test-config.php or phpunit.xml)

-- 
Ticket URL: <http://unit-tests.trac.wordpress.org/ticket/39#comment:5>
WordPress Unit Tests <http://unit-tests.trac.wordpress.org>
My example project


More information about the wp-unit-tests mailing list