Define, Share and Automate your tests / specifications

Html presentation improvement

Tmar implement a very simple syntax (markdown) to improve text presentation in html reports.
 
Examples
#Title size 1
##Title size 2
###Title size 3
**Bold text**
*Italic text*
* List item 1
* List item 2
* List item 3
* List item 1
* List item 2
* Sublist item A
* Sublist item B
* List item 3

Paragrah starting with >

>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor.
Cras elementum ultrices diam. Maecenas ligula massa, varius a, semper congue, euismod non, mi.
Proin porttitor, orci nec nonummy molestie, enim est eleifend mi, non fermentum diam nisl sit amet erat. Duis semper.
Duis arcu massa, scelerisque vitae, consequat in, pretium a, enim. Pellentesque congue.

Block indent by at least 4 spaces

      String normaliseName(String name, char separator) {
          if (name.length() > 0 && name[name.length() - 1] == separator){      
             return name.substring(0, name.length() - 1)
          } else {
             return name
          }
      }

Column alignment

Tmar considers the column header to determine column alignment
 
If the column header right white space is twice as big as the left white space the column is left align
 
If the left white space is twice as big as the right white space the column is right align,
otherwise the column is centered

Anchor subtitle

Anchor subtitle allows to improve presentation by creating an automatic summary at the begin of the html reports
 
This summary also shows, for each anchor subtitle, the test status of the iterations implements between the subtitle and the next subtitle or the document end.
 
Each summary line is a link to the anchor subtitle in the report

Line starting by _

_Anchor subtitle
 

Hidding a part of the description

Some times initialization content can be big enough to make the description difficult to read.
Tmar allows to hide blocs of description to lighten the report
 
It still possible to see the content by clicking on the corresponding link
 
Hidden blocs are introduced by the /hide statement following by a link name
It's closed by the /endHide
 
 
Examples
Content hidden
Content displayed