ComboStrap Page Metadata - Unit Testing

1 - About

unit is just a semantic component to indicate a unit of sequence of code block.

It doesn't render and is used mostly to create unit tests in documentation that are later used by an external test engine.

3 - Syntax

  • The unit node may got the display=“none” property to not display the whole block
<unit display="none">
<file txt nico.txt>
Nico
</file>
%%A block code%%
<console>
Nico
</console>
</unit>

4 - Example

4.1 - Default

<unit>
<file txt nico.txt>
Nico
</file>
%%A code block may also come here but as we can't nest node in dokuwiki we can put it in a rendering block%%
<console>
Nico
</console>
</unit>
nico.txt
Nico

A code block may also come here but as we can't nest node in dokuwiki we can put it in a rendering block

Nico

4.2 - Display: none

The unit node may got the display=“none” property to not display the whole block

The below code should not render.

<unit display="none">
<file>
</file>
<console>
</console>
</unit>