[wp-trac] [WordPress Trac] #27411: Allow adding custom @ticket types for unit tests

WordPress Trac noreply at wordpress.org
Fri Mar 14 05:31:48 UTC 2014


#27411: Allow adding custom @ticket types for unit tests
------------------------------+-----------------------------
 Reporter:  rmccue            |      Owner:
     Type:  defect (bug)      |     Status:  new
 Priority:  normal            |  Milestone:  Awaiting Review
Component:  Build/Test Tools  |    Version:
 Severity:  normal            |   Keywords:
  Focuses:                    |
------------------------------+-----------------------------
 It's possible to set tests as being skipped by adding `@ticket xxx`,
 `@ticket UTxxx` or `@ticket PluginXXX` depending on which you're referring
 to. Additionally, you can conditionally force running these via the
 command line with `--group xxx`, `--group UTxxx` or `@ticket PluginXXX`.

 It's possible to add your own types for `@ticket` by subclassing
 `WP_UnitTestCase`, but it's not possible to use the `--group` flag for
 these.

 It'd be nice to make this configurable (filterable?) to add extra types.
 Maybe a define in `wp-tests-config.php`?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27411>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list