WordPress.org

Make WordPress Core

Opened 4 years ago

Last modified 6 months ago

#34185 new defect (bug)

Excluding certain PHPUnit test groups results in "Database is dead" notice and tests terminate

Reported by: netweb Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Build/Test Tools Keywords: needs-patch
Focuses: Cc:

Description

When excluding certain PHPUnit groups from the full test suite the tests fail with a "Database is dead" notice.

Known groups thus far:

  • phpunit --exclude-group import
  • phpunit --exclude-group query
$ phpunit --exclude-group import
Installing...
Running as single site... To run multisite, use -c tests/phpunit/multisite.xml
PHPUnit 4.7.7 by Sebastian Bergmann and contributors.

.............................................................   61 / 4556 (  1%)
...................................SS........................  122 / 4556 (  2%)
.............................................................  183 / 4556 (  4%)
.............................................................  244 / 4556 (  5%)
.S...........................................................  305 / 4556 (  6%)
.............................................................  366 / 4556 (  8%)
.............................................................  427 / 4556 (  9%)
.............................................................  488 / 4556 ( 10%)
.............................................................  549 / 4556 ( 12%)
.............................................................  610 / 4556 ( 13%)
.....................S....S..................................  671 / 4556 ( 14%)
................................................S............  732 / 4556 ( 16%)
.............................................................  793 / 4556 ( 17%)
..................................Database is dead.

Change History (1)

#1 @netweb
4 years ago

Adding another known case: phpunit --exclude-group xmlrpc

Note: See TracTickets for help on using tickets.