#40533 closed task (blessed) (fixed)
Avoid test skipping for situations that are actually errors or failures
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | 4.8 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Build/Test Tools | Keywords: | needs-patch |
Focuses: | Cc: |
Description
Some tests contain calls to markTestSkipped()
as a result of situations such as incorrect test data or unsuitable test environments. If the test data isn't valid or the environment is not capable of supporting the test then the test should fail, otherwise the tests are not reliable.
This is a catch-all ticket for attempting to remove a bunch of test skipping that falls outside of the is_multisite()
skipping that's being handled in #40531.
Change History (20)
This ticket was mentioned in Slack in #core by obenland. View the logs.
8 years ago
#18
@
8 years ago
Each of these failures should have some information about how to resolve it. For example, the importer plugin is missing by default if you use git
to develop against WordPress (#41345). This isn't documented anywhere that I could find.
Ideally the error message should describe what is going on and point to documentation that explains how to resolve the issue. For the importer test failures, we can link to https://make.wordpress.org/core/handbook/contribute/git/#unit-tests.
In 40517: