[wp-trac] [WordPress Trac] #40041: Use `markTestSkipped()` vs `echo` in REST API schema initialization tests

WordPress Trac noreply at wordpress.org
Mon Mar 6 11:35:30 UTC 2017


#40041: Use `markTestSkipped()` vs `echo` in REST API schema initialization tests
--------------------------+-----------------------
 Reporter:  jeremyfelt    |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  4.7.4
Component:  REST API      |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:  rest-api
--------------------------+-----------------------

Comment (by jnylen0):

 The only part of this test that we should skip is the fixture generation.
 The assertions there are still valuable.

 I didn't see a clear way to accomplish this when I was working on it.
 Maybe we want to refactor this into two separate tests - one that does the
 assertions and another (skippable) test that does the fixture generation?

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


More information about the wp-trac mailing list