sebastianbenz / Jnario

Executable specifications for Java
136 stars 38 forks source link

Add an HTML reporter based on the element hierarchy. #143

Closed gallandarakhneorg closed 6 years ago

gallandarakhneorg commented 10 years ago

The default HTML reporter of Jnario creates HTML pages with a specific style associated to each type of specification element (fact, description, etc).

This commit adds an extension of this reporter, which is generating the HTML pages by using only the depth of the elements in the specification (not the type of the element).

Additionnally, this new reporter replaces any occurrence of "@outline" or "" by a computed outline from the top level elements in the specification. This is related to the issue #125.

The new reporter replaces several HTML tags in the specification by the correct HTML code in the generated pages. For example, "text" permits to put a note paragraph with the appropriate icon.