[wp-trac] [WordPress Trac] #30304: external-http automated tests should not run by default

WordPress Trac noreply at wordpress.org
Mon Nov 10 14:22:41 UTC 2014


#30304: external-http automated tests should not run by default
------------------------------+-----------------
 Reporter:  boonebgorges      |      Owner:
     Type:  enhancement       |     Status:  new
 Priority:  normal            |  Milestone:  4.1
Component:  Build/Test Tools  |    Version:
 Severity:  normal            |   Keywords:
  Focuses:                    |
------------------------------+-----------------
 A number of our automated tests in the groups `external-http` and `http`
 make requests to external URLs. These tests take a long time to run (in
 excess of 25% of total running time for the suite) and are highly
 dependent on having a good internet connection. As such, their presence is
 a disincentive from running the entire test suite when
 patching/committing. Moreover, our HTTP functionality is fairly isolated,
 so that it's pretty unlikely to be affected by most core work. This means
 that running this particular set of tests is of marginal benefit to most
 devs.

 As suggested by nacin at WCSF, we should stop running these tests on a
 default call to `phpunit`, like we already do with the extremely slow ajax
 tests. Here's what needs to be done:

 * Exclude the `external-http` group in `phpunit.xml.dist` manifest.
 * Make sure that the `external-http` group contains all and only those
 tests that make external requests.
 * Add a task to Gruntfile.js for the `external-http` group, so it gets run
 on `grunt phpunit` and in CI.

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


More information about the wp-trac mailing list