[wp-trac] [WordPress Trac] #53363: Test tool and unit test improvements for 5.9
WordPress Trac
noreply at wordpress.org
Sat Nov 27 16:16:31 UTC 2021
#53363: Test tool and unit test improvements for 5.9
--------------------------------------+---------------------
Reporter: desrosj | Owner: (none)
Type: task (blessed) | Status: new
Priority: normal | Milestone: 5.9
Component: Build/Test Tools | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+---------------------
Comment (by SergeyBiryukov):
In [changeset:"52259" 52259]:
{{{
#!CommitTicketReference repository="" revision="52259"
Tests: Use a simpler approach to test the output in some tests.
Instead of ignoring the output and catching it later with
`getActualOutput()`, we can use `expectOutputRegex()` directly, which
evaluates the output after the rest of the test code has run, if no
unexpected errors were encountered.
Follow-up to [52173], [52253].
Props jrf.
See #53635, #53363.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53363#comment:129>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list