Jump to content

Podręcznik:$wgParserTestFiles

From mediawiki.org
This page is a translated version of the page Manual:$wgParserTestFiles and the translation is 38% complete.
Profiling, testing and debugging: $wgParserTestFiles
Parser test suite files to be run by parserTests.php.
Wprowadzono w wersji:1.9.0 (r17534)
Przestarzałe w wersji:1.30.0 (Gerrit change 363961; git #9081dd12)
Usunięto w wersji:1.40.0 (Gerrit change 842007; git #4cb3957c)
Dozwolone wartości:(array of strings)
Domyślna wartość:(zobacz poniżej)

Szczegóły

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

Extensions may add their own tests to this array, or site-local tests may be added via LocalSettings.php .

Use full paths.

Domyślna wartość

Wersja MediaWiki:
1.36
$wgParserTestFiles = [];
Wersje MediaWiki:
1.18 – 1.35
$wgParserTestFiles = [
	"$IP/tests/parser/parserTests.txt",
	"$IP/tests/parser/extraParserTests.txt"
];
Wersja MediaWiki:
1.17
$wgParserTestFiles = array(
	"$IP/maintenance/tests/parser/parserTests.txt",
	"$IP/maintenance/tests/parser/ExtraParserTests.txt"
);
Wersje MediaWiki:
1.9 – 1.16
$wgParserTestFiles = array(
	"$IP/maintenance/tests/parser/parserTests.txt",
);

Deprecation

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

Zobacz też