이 문서는 https://tiddlywiki.com/languages/ko-KR/에서 티들리위키의 정적 HTML 표현의 일부입니다

TestCaseTiddlers

2024년 8월 8일 오전 2:08

Test case tiddlers encapsulate one or more tiddlers that can be displayed as a $testcase: 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
typeNeeds to 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 rendered as plain text
importNew in v5.3.6 A filter string that defines a list of tiddlers to import
import-compoundNew in v5.3.6 A filter string that defines a list of compound tiddlers to import. See: $data widget

Test case tiddlers with the appropriate tag are shown in the $:/ControlPanel -> Advanced -> Test Cases

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, if the field exists

Also see: TestCaseWidget, DataWidget