Page MenuHomePhabricator

API integration tests should skip tests according to flags exposed by the SiteInfo API module
Open, Needs TriagePublic

Description

Some tests will not work if certain aspects of MediaWiki are changed by extensions, e.g. requiring captchas for edits or account creation. Such extensions need to set a flag that is exposed by SiteInfo, so the respective tests can be skipped in the API test suite.

In addition, the API test suite should not run at all if SiteInfo does not expose a "test mode" flag. That flag should be enabled by a MediaWiki configuration setting. If that flag is not present, the test suite should abort presenting a message that instructs the user to include DevelopmentSettings.php in their LocalSettings.php.

See: https://www.mediawiki.org/wiki/API:Siteinfo

Event Timeline

DannyS712 renamed this task from API integration tests should skip tests accourding to flags exposed by the SiteInfo API module to API integration tests should skip tests according to flags exposed by the SiteInfo API module .Aug 16 2021, 8:22 PM

Removing Continuous-Integration-Config , it seems most of this can be implemented in the api testing suite. If interest has fanned out, feel free to decline this task.