[wp-trac] [WordPress Trac] #39264: Add WP-API JS Client unit tests to core

WordPress Trac noreply at wordpress.org
Tue Feb 14 05:55:14 UTC 2017


#39264: Add WP-API JS Client unit tests to core
--------------------------------------+------------------------------
 Reporter:  adamsilverstein           |       Owner:  adamsilverstein
     Type:  enhancement               |      Status:  reopened
 Priority:  normal                    |   Milestone:  4.7.3
Component:  REST API                  |     Version:  4.7
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:  javascript
--------------------------------------+------------------------------
Changes (by jnylen0):

 * keywords:  has-patch has-unit-tests commit => has-patch has-unit-tests
 * status:  closed => reopened
 * resolution:  fixed =>


Comment:

 Reopening due to a couple of issues:

 - Running a different set of PHPUnit tests (e.g. full suite vs
 `WP_Test_REST_Schema_Initialization` class) generates a different fixture
 file, which then shows up in `svn st` and similar.  This isn't really
 desirable.  Ideally this file would only be updated when the API endpoints
 actually change, so we need to come up with a way to make the data in the
 generated file always the same (IDs, usernames, post titles, etc.)
 - As @netweb noted
 [https://wordpress.slack.com/archives/core/p1487051002008662 in Slack],
 "the `grunt restapi-jsclient` task should also run `qunit:compiled` rather
 than just `qunit`, that way when the task is run `grunt build` and `grunt
 copy:qunit` have already been run."

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


More information about the wp-trac mailing list