[wp-trac] [WordPress Trac] #41698: Tests in the ms-files group are never run

WordPress Trac noreply at wordpress.org
Wed Aug 23 01:22:23 UTC 2017


#41698: Tests in the ms-files group are never run
------------------------------+------------------------------
 Reporter:  johnbillion       |       Owner:
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  Awaiting Review
Component:  Build/Test Tools  |     Version:
 Severity:  normal            |  Resolution:
 Keywords:  has-patch         |     Focuses:  multisite
------------------------------+------------------------------
Changes (by netweb):

 * keywords:  needs-patch => has-patch


Comment:

 Previously:

 * Single Site: #36566 Improve unit tests around multisite's bootstrap,
 networks, and sites / [37269]
 * Multisite: #30256 Create and exclude an area for ms-files.php specific
 unit tests / [30286]

 cc @jeremyfelt As both above tickets were yours do concerns on adding the
 `ms-files` group of tests into its own multisite test group for Travis CI?

 Testing [attachment:41698.diff] in my local fork:
 * PR: https://github.com/ntwb/wordpress/pull/5
 * Travis CI Build: https://travis-ci.org/ntwb/wordpress/builds/267413460

 Here's the first job passing with flying colours:

 {{{
 Running "phpunit:ms-files" (phpunit) task
 Installing...
 Installing network...
 Running as multisite...
 Not running ajax tests. To execute these, use --group ajax.
 Not running external-http tests. To execute these, use --group external-
 http.
 PHPUnit 6.3.0 by Sebastian Bergmann and contributors.
 Runtime:       PHP 7.1.8
 Configuration:
 /home/travis/build/ntwb/wordpress/tests/phpunit/multisite.xml
 ..                                                                  2 / 2
 (100%)
 You should really fix these slow tests (>150ms)...
  1. 351ms to run Tests_Multisite_MS_Files_Rewriting:test_switch_upload_dir
  2. 313ms to run
 Tests_Multisite_MS_Files_Rewriting:test_upload_directories_after_multiple_wpmu_delete_blog_with_ms_files
 Time: 3.28 seconds, Memory: 88.00MB
 }}}

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


More information about the wp-trac mailing list