This page is part of a static HTML representation of the TiddlyWiki at https://tiddlywiki.com/

TestCaseTiddlers

 7th May 2024 at 10:19pm

Test case tiddlers encapsulate one or more tiddlers that can be displayed as a test case: an independent embedded wiki that can be used for testing or learning purposes.

Test case tiddlers are formatted as CompoundTiddlers, allowing them to contain multiple tiddlers packed into one.

Test case tiddlers have the following fields:

FieldDescription
typeShould be set to text/vnd.tiddlywiki-multiple
tagsTest cases are tagged $:/tags/wiki-test-spec. Test cases that intentionally fail are tagged $:/tags/wiki-test-spec-failing
descriptionDescriptive heading for the test, intended to make it easy to identify the test
display-formatOptional, defaults to wikitext. Set to plaintext to cause the output to be rended as plain text

Test case tiddlers with the appropriate tag are shown in $:/ControlPanel

Some payload tiddlers are set aside for special purposes:

TiddlerDescription
NarrativeNarrative description of the test, intended to explain the purpose and operation of the test
OutputThe tiddler that produces the test output
ExpectedResultHTML of expected result of rendering the Output tiddler
DescriptionSet to the text of the description field