Tests that depend on external resources or APIs introduce fragility to the testing system. Tests should be consistent and repeatable, and if an external resource has an outage of some kind, we can see false negative or apparently random failures in tests.
For example, any automated tests that depend on YouTube (like: MediaStandardProfileTest::testMediaSources) will necessarily fail if there are ever outage(or even throttling issues) on the YouTube side, even if the test itself is still valid.
Wherever possible, we should mock external resource requests or APIs, rather than depending on the live services.
{Add link to doc page and add proposed text}
This is likely to be a slow/longer term effort rather than something that takes immediate priority - but wanted to raise it as an improved best practice for testing. (And align it with Drupal.org testing policy β ).
Active
11.0 π₯
simpletest.module
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.