[wp-trac] [WordPress Trac] #33968: Improve performance of Unit Tests for 4.4

WordPress Trac noreply at wordpress.org
Mon Oct 5 01:13:15 UTC 2015


#33968: Improve performance of Unit Tests for 4.4
------------------------------+-----------------------
 Reporter:  jorbin            |       Owner:  jorbin
     Type:  defect (bug)      |      Status:  assigned
 Priority:  normal            |   Milestone:  4.4
Component:  Build/Test Tools  |     Version:
 Severity:  normal            |  Resolution:
 Keywords:                    |     Focuses:
------------------------------+-----------------------

Comment (by netweb):

 The PHPUnit `ajax` and `external-http` group of tests are not run as part
 of the PHP 5.2 Travis CI tests:

 i.e. Both the grunt sub tasks of  part of `grunt phpunit` task:
 * `phpunit -c phpunit.xml.dist --group ajax`
 * `phpunit -c phpunit.xml.dist --group external-http`

 Example via Travis CI job ~2 months ago:  https://travis-
 ci.org/aaronjorbin/develop.wordpress/builds/72667225
 {{{
 Running "phpunit:ajax" (phpunit) task
 Installing...
 Running as single site... To run multisite, use -c
 tests/phpunit/multisite.xml
 Not running ms-files tests. To execute these, use --group ms-files.
 Not running external-http tests. To execute these, use --group external-
 http.
 PHPUnit 3.6.12 by Sebastian Bergmann.
 Configuration read from
 /home/travis/build/aaronjorbin/develop.wordpress/phpunit.xml.dist
 Time: 1 second, Memory: 116.00Mb
 OK (0 tests, 0 assertions)

 }}}

 And
 {{{
 Running "phpunit:external-http" (phpunit) task
 Installing...
 Running as single site... To run multisite, use -c
 tests/phpunit/multisite.xml
 Not running ajax tests. To execute these, use --group ajax.
 Not running ms-files tests. To execute these, use --group ms-files.
 PHPUnit 3.6.12 by Sebastian Bergmann.
 Configuration read from
 /home/travis/build/aaronjorbin/develop.wordpress/phpunit.xml.dist
 Time: 2 seconds, Memory: 116.00Mb
 OK (0 tests, 0 assertions)
 }}}

 Where both should respectively be:
 {{{
 Running "phpunit:ajax" (phpunit) task
 Installing...
 Running as single site... To run multisite, use -c
 tests/phpunit/multisite.xml
 Not running ms-files tests. To execute these, use --group ms-files.
 Not running external-http tests. To execute these, use --group external-
 http.
 PHPUnit 4.5.0 by Sebastian Bergmann and contributors.
 Configuration read from
 /home/travis/build/aaronjorbin/develop.wordpress/phpunit.xml.dist
 ................................................................. 65 / 70
 ( 92%)
 .....
 Time: 1.9 minutes, Memory: 108.50Mb
 OK (70 tests, 271 assertions)
 }}}
 And
 {{{
 Running "phpunit:external-http" (phpunit) task
 Installing...
 Running as single site... To run multisite, use -c
 tests/phpunit/multisite.xml
 Not running ajax tests. To execute these, use --group ajax.
 Not running ms-files tests. To execute these, use --group ms-files.
 PHPUnit 4.5.0 by Sebastian Bergmann and contributors.
 Configuration read from
 /home/travis/build/aaronjorbin/develop.wordpress/phpunit.xml.dist
 ..................................................
 Time: 25.5 seconds, Memory: 102.50Mb
 OK (50 tests, 112 assertions)
 }}}
 Sadly PHPUnit error codes do not detect this: `Done, without errors.`

 I've tried to find unearth some older build/job URL's but due to the way
 Travis CI UI works this is particularly difficult, I'd hoped to get a
 build/job before r30298 but haven't been able to, the closest I've got is
 [https://travis-ci.org/aaronjorbin/develop.wordpress/jobs/44397980 #951]
 from ~10 months ago where the ajax and external-http are not run.

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


More information about the wp-trac mailing list