[wp-trac] [WordPress Trac] #50902: Build/CI: fix running of the unit tests on PHP 8/nightly

WordPress Trac noreply at wordpress.org
Tue Aug 11 19:06:47 UTC 2020


#50902: Build/CI: fix running of the unit tests on PHP 8/nightly
------------------------------+-------------------------------
 Reporter:  jrf               |       Owner:  (none)
     Type:  task (blessed)    |      Status:  new
 Priority:  normal            |   Milestone:  5.6
Component:  Build/Test Tools  |     Version:
 Severity:  major             |  Resolution:
 Keywords:  has-patch php8    |     Focuses:  coding-standards
------------------------------+-------------------------------

Comment (by jrf):

 Note: as the various test runs are "chained", once this patch has been
 committed, the ''first'' test run will be enabled and fail. Because of
 that the other test runs don't run.

 If so desired, I can change the setup to run each of the 7 test runs
 separately on PHP 8 to get proper insight in the failures of all test
 runs.

 To be specific:

 > phpunit --verbose -c phpunit.xml.dist

 => Fails with: `Tests: 10895, Assertions: 49400, Errors: 184, Failures:
 387, Warnings: 3, Skipped: 100, Risky: 3.`


 The following test runs aren't executed because of the above failure.
 > phpunit --verbose -c phpunit.xml.dist --group ajax &&
 > phpunit --verbose -c tests/phpunit/multisite.xml &&
 > phpunit --verbose -c tests/phpunit/multisite.xml --group ms-files &&
 > phpunit --verbose -c phpunit.xml.dist --group external-http &&
 > phpunit --verbose -c phpunit.xml.dist --group restapi-jsclient &&
 > phpunit -v --group xdebug --exclude-group __fakegroup__

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


More information about the wp-trac mailing list