[wp-trac] [WordPress Trac] #53861: Promote a database error during test bootstrap to a failure
WordPress Trac
noreply at wordpress.org
Tue Aug 23 09:28:08 UTC 2022
#53861: Promote a database error during test bootstrap to a failure
------------------------------+------------------------------
Reporter: johnbillion | 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 jrf):
Just came across this ticket, sounds useful. Unfortunately the GitHub
Action logs are no longer available (retention is only six months), so it
is unclear what the error was which was encountered and how PHPUnit
handled it in that situation.
Based on a quick test I did, throwing an `Exception` in the bootstrap will
halt test execution and exit with a non-0 exit code, so that could be the
way forward.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53861#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list