{%- import 'macros.tex' as macros %}
\paragraph{Testsummary}\mbox{}\\
This test was passed with the state: {\bf {{ macros.result(testcase.levelno) }}}.
\begin{longtabu} to \linewidth {lX}
\toprule
Caller: & {{ macros.latex_filter(testcase.pathname) }} ({{ "%d" % testcase.lineno }})\\
Start-Time: & {{ macros.latex_filter(testcase.time_start) }}\\
Finished-Time: & {{ macros.latex_filter(testcase.time_finished) }}\\
Time-Consumption & {{ '%.3fs' % (testcase.time_consumption) }}\\
\midrule
\multicolumn{2}{l}{\bf{Testresults:}}\\
\midrule
{%- for tLogger in testcase.testcaseLogger %}
\bf{\,{{ macros.result(tLogger.levelno) }} } & {{ macros.latex_filter(tLogger.message) }}\\
{%- endfor %}
\bottomrule
\end{longtabu}

{% if details== true %}
\paragraph{Testdetails}\mbox{}\\
{%- for tLogger in testcase.testcaseLogger %}
    \begin{tabu} to \linewidth {lX}
    \toprule
    {\bf {{ macros.result(tLogger.levelno) }} } & {{ macros.latex_filter(tLogger.message) }}\\
    \bottomrule
    \end{tabu}
    {%- for mLogger in tLogger.moduleLogger %}
        \definecolor{shadecolor}{rgb}{ {{macros.bg_by_levelno(mLogger.levelno) }} }\begin{modulelog}[breaklines=true, breakanywhere=true]
        {{ mLogger.message }}
        \end{modulelog}
        \vspace*{-0.225cm}\pagebreak[1]
    {%- endfor %}

    \vspace*{2.5ex}
{%- endfor %}
{% endif %}
