Manual:$wgParserTestFiles/ja

From Linux Web Expert

<translate> Profiling, testing and debugging</translate>: $wgParserTestFiles
Parser test suite files to be run by parserTests.php.
<translate> Introduced in version:</translate>1.9.0 (r17534)
<translate> Deprecated in version:</translate>1.30.0 (Gerrit change 363961; git #9081dd12)
<translate> Removed in version:</translate>1.40.0 (Gerrit change 842007; git #4cb3957c)
<translate> Allowed values:</translate>(文字列の配列)
<translate> Default value:</translate>(下記参照)

詳細

Parser test suite files to be run by parserTests.php when no specific filename is passed to it.

拡張機能が、自身のテストをこの配列に追加する場合があります。サイト ローカルのテストを LocalSettings.php 経由で追加することもできます。

絶対パスを使用してください。

既定値

<td class="mw-version-versionbox" title="<translate nowrap> The latest stable version is <tvar name=1>1.41</tvar></translate>">
<translate> ≥</translate> 1.36
<translate> MediaWiki version:</translate>
$wgParserTestFiles = [];
<td class="mw-version-versionbox" title="<translate nowrap> MediaWiki <tvar name=1>1.35</tvar> is unsupported version</translate>">
1.18 – 1.35
<translate> MediaWiki versions:</translate>
$wgParserTestFiles = [
	"$IP/tests/parser/parserTests.txt",
	"$IP/tests/parser/extraParserTests.txt"
];
<td class="mw-version-versionbox" title="<translate nowrap> MediaWiki <tvar name=1>1.17</tvar> is unsupported version</translate>">
1.17
MediaWiki バージョン:
$wgParserTestFiles = array(
	"$IP/maintenance/tests/parser/parserTests.txt",
	"$IP/maintenance/tests/parser/ExtraParserTests.txt"
);
<td class="mw-version-versionbox" title="<translate nowrap> MediaWiki <tvar name=1>1.16</tvar> is unsupported version</translate>">
1.9 – 1.16
<translate> MediaWiki versions:</translate>
$wgParserTestFiles = array(
	"$IP/maintenance/tests/parser/parserTests.txt",
);

廃止予定

This variable is deprecated with this change. Instead, all *.txt files in an extension's tests/parser/ directory will be auto-discovered.

関連項目