Example testcase simple
From MediaWiki extension testing
Finding problems
Here we deliberately introduce a spelling error in the test to see what happens
<exttest>
<name>plain text</name>
<code>sest: a deliberate spelling error.</code>
<expect>test: a deliberate spelling error.aaaa</expect>
</exttest>
Because the test and result blocks are separate, we can add comments in between. Changes are marked below the changed lines. - indicates removed, + indicates added.
<result>
- Result Differs from expected
- html output
sest: a deliberate spelling error.
- diff
- sest: a deliberate spelling error. ? ^ + test: a deliberate spelling error.aaaa ? ^ ++++
</result>
[[Categorie:Automated tests]]