[wp-trac] [WordPress Trac] #48933: Incorrect configuration value name in unit tests

WordPress Trac noreply at wordpress.org
Wed Dec 11 10:49:42 UTC 2019


#48933: Incorrect configuration value name in unit tests
------------------------------+-----------------------------
 Reporter:  Rarst             |      Owner:  (none)
     Type:  defect (bug)      |     Status:  new
 Priority:  low               |  Milestone:  Awaiting Review
Component:  Build/Test Tools  |    Version:
 Severity:  minor             |   Keywords:
  Focuses:                    |
------------------------------+-----------------------------
 The default test configuration in `phpunit.xml.dist` has threshold entry
 for slow tests that is incorrectly named.

 The current config says `<element key="slow_threshold">` and the name
 expected by code is `slowThreshold`.

 While the code defaults to same `500`ms value anyway, this is very
 confusing when config is edited or followed as an example and the new
 value doesn't apply.

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


More information about the wp-trac mailing list