[wp-trac] [WordPress Trac] #29718: Improved coverage for WP_Tax_Query unit tests

WordPress Trac noreply at wordpress.org
Sun Sep 21 09:27:52 UTC 2014


#29718: Improved coverage for WP_Tax_Query unit tests
--------------------------+------------------------------
 Reporter:  boonebgorges  |       Owner:
     Type:  enhancement   |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Taxonomy      |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+------------------------------
Changes (by DrewAPicture):

 * keywords:   => has-patch


Comment:

 Well, I'm impressed. Nice work.

 One thing I wonder about is whether we should embrace the idea of testing
 the "any" taxonomy instead of pigeon-holing our tests to specifically
 categories or tags.

 As usage of custom post types/taxonomies continues to grow, it might be
 worth taking a more dynamic tack to testing taxonomy APIs using random,
 factory-generated taxonomies (hierarchical or non-hierarchical as needed)
 whenever possible.

 I think my hesitation to using built-in taxonomies stems from the
 knowledge that there's a great deal of institutional and legacy support
 for those taxonomies in core. Sometimes we need to specifically test
 categories and tags, and that's a given. I just don't think that means we
 ''always'' should.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29718#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list