unittest/templates/test/case_short.tex

20 lines
849 B
TeX

{%- import 'macros.tex' as macros %}
\paragraph{Testresult}\mbox{}\\
This test was passed with the state: {\bf {{ macros.result(testcase.levelno) }}}. See also full trace
in section \ref{testcase:{{testrun.testrun_id}}__{{testcase.message}}}!
\begin{longtabu} to \linewidth {lX}
\toprule
Testrun: & {{ testrun.interpreter }}\\
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{Testsummary:}}\\
\midrule
{%- for tLogger in testcase.testcaseLogger %}
\bf{\,{{ macros.result(tLogger.levelno) }} } & {{ macros.latex_filter(tLogger.message) }}\\
{%- endfor %}
\bottomrule
\end{longtabu}