[wp-trac] [WordPress Trac] #50640: [PHPUnit] Mark test as skipped instead of failing if GD extension is not availble
WordPress Trac
noreply at wordpress.org
Tue Aug 11 18:09:26 UTC 2020
#50640: [PHPUnit] Mark test as skipped instead of failing if GD extension is not
availble
------------------------------+------------------------------
Reporter: ayeshrajans | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Build/Test Tools | Version:
Severity: normal | Resolution:
Keywords: has-patch php8 | Focuses:
------------------------------+------------------------------
Changes (by jrf):
* keywords: has-patch close php8 => has-patch php8
Comment:
I concur with @ayeshrajans here. Tests which depend on certain environment
elements should be skipped if the environment does not comply, not failed.
IF the tests have hard requirements for the environment and we want builds
to fail on a mismatched environment, a check for those requirements should
be added to the test bootstrap file instead with a helpful error message
followed by a `die(1)` to make the test run fail.
(in addition to the Composer `ext` requirements as suggested by
@ayeshrajans)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50640#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list