On Fri, 05 Oct 2012 12:17:41 -0700, Antoine Musso hashar+wmf@free.fr wrote:
Le 05/10/12 19:11, bawolff a écrit :
It would be nice if jenkins also did a run with some non-default options. Obviously we have a lot of options, but doing at least 1 run with some of the common variations (say $wgCapitalLinks) would help quite a bit I imagine.
The Jenkins job setup a default MediaWiki install which mean it is mostly using DefaultSettings.php. If we want to test wgCapitalLinks, we should write tests for that feature and adapt existing tests to take in account that global variable.
The same case probably goes for a number of our other config variables.
There are a few places where we go and swap out the value of a config variable and then reset it. Last one I saw was wgHtml5 in HtmlTests. However even that is almost never actually used. We don't bother testing both situations.
We should probably introduce some code to make tweaking and then resetting config in tests easy so we can write more of our tests to check different modes of config.