Add WordPress timing tests #4576
Labels
Accessibility
Changes that impact accessibility and need corresponding review (e.g. markup changes).
P2
Low priority
Testing
Issues related with Unit, E2E, Smoke, and other testing requirements/needs
WS:Perf
Work stream for Metrics, Performance and Optimizer
Feature description
We don't have an obvious way right now to test anything that happens before the
'wp'
hook, as we're using theWP_UnitTestCase
. This leads to issues like the #4525 because we can never catch any timing problems that can happen before the'wp'
action.It might be worthwhile to set up a separate set of tests that use
SHORT_INIT
or some other hack to achieve the same thing) to be able to test our plugin against WordPress, but control which actions happen and test for earlier conflicts.This would also allow us to add regression tests to fixes like the one for the issue above, where we can only test manually right now.
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
'wp'
.Implementation brief
TestCase
implementation that loads WordPress viaSHORT_INIT
.go_to_action()
method.QA testing instructions
Demo
Changelog entry
The text was updated successfully, but these errors were encountered: