Manual:$wgParserTestFiles/zh
From Linux Web Expert
File:OOjs UI icon alert-destructive.svg | <translate> This feature was removed completely in version <tvar name=ver>1.40.0</tvar>.</translate> |
<translate> Profiling, testing and debugging</translate>: $wgParserTestFiles | |
---|---|
由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> | -{zh-hans:(字符串数组); zh-hant:(字串陣列);}- |
<translate> Default value:</translate> | (参见下方) |
<translate> Other settings:</translate> <translate> Alphabetical</translate> | <translate> By function</translate> |
细节
未传递任何特定文件名时由parserTests.php运行的解析器测试套件文件。
扩展可以将自己的测试添加到此数组,或者可以通过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 = [];
1.18 – 1.35
<translate> MediaWiki versions:</translate> |
$wgParserTestFiles = [
"$IP/tests/parser/parserTests.txt",
"$IP/tests/parser/extraParserTests.txt"
];
1.17
MediaWiki版本: |
$wgParserTestFiles = array(
"$IP/maintenance/tests/parser/parserTests.txt",
"$IP/maintenance/tests/parser/ExtraParserTests.txt"
);
1.9 – 1.16
<translate> MediaWiki versions:</translate> |
$wgParserTestFiles = array(
"$IP/maintenance/tests/parser/parserTests.txt",
);
弃用
此变量已在此更改被弃用。
而是会自动发现扩展的tests/parser/
目录中的所有*.txt
文件。
参见
Categories:
- MediaWiki configuration settings/zh
- MediaWiki configuration settings introduced in version 1.9.0/zh
- MediaWiki configuration settings deprecated in version 1.30.0/zh
- MediaWiki configuration settings removed in version 1.40.0/zh
- Pages with broken file links
- MediaWiki deprecated or obsolete features/zh
- Profiling, testing and debugging variables/zh