Syntax testcase

From MediaWiki extension testing
Jump to: navigation, search

3 dataformat to go about it: wiki, xml, py (see also the examples directory, and the HELP file)

Contents

List of possible elements

element name function (comments)
name The name of the test
code The wikicode to be tested (wikicode test)
expect The expected html output from mediawiki, if it were to parse the contents of the code element
result The actual html output from mediawiki, when it last parsed the contents of the code element (output by testbot)
diff An ascii-text diff between code and expect, provided for convenience. (see: class Differ for technical description) (output by testbot)
pageReference for tests originally derived from the wiki, provides details on where the test was found, (so as to be able to write results back to the wiki later) (output by testbot, .py only, time critical)

Multiple data formats

The testbot just need data to work with. The dataformat is not so important. So by making the testbot can read more then one dataformat it is more flexible. The initialy dataformat is, ofcourse, the wikipage.

Conversion from the wikipage to other format

Not yet documented.

Examples

Personal tools
Namespaces
Variants
Actions
navigation
Toolbox