[wp-trac] [WordPress Trac] #34185: Excluding certain PHPUnit test groups results in "Database is dead" notice and tests terminate
WordPress Trac
noreply at wordpress.org
Tue Mar 9 01:41:37 UTC 2021
#34185: Excluding certain PHPUnit test groups results in "Database is dead" notice
and tests terminate
------------------------------+------------------------------
Reporter: netweb | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Build/Test Tools | Version:
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
------------------------------+------------------------------
Comment (by isabel_brison):
I tested this using the `test:php` npm script, and found that the tests
abort no matter what group I name after `--exclude-group`. Output is:
{{{
........................................................... 59 / 12551
( 0%)
........................................................... 118 / 12551
( 0%)
...............................EE.......................... 177 / 12551
( 1%)
........................................EE...............E. 236 / 12551
( 1%)
.......FF.F.E.EE.FEFFFF.................................... 295 / 12551
( 2%)
FEFF.FFFFF.EFEF.EFFFF.FFFF.FFF...EEEFEEEEEEEEEEEEEEEEEEEE.E 354 / 12551
( 2%)
EEFEEEEEEEEEEEEEEEEEEEE..FFFFFFS..FFFFF.FFFFF............-1%
}}}
Specifying a `--group` works as expected.
Something else I noticed is that when passing `--exclude-group`, groups
that are excluded by default, such as external-http, are no longer
excluded. Not sure if that's related as those groups work fine when run
individually.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34185#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list