unittest/templates/test/run_statistic.tex

14 rivejä
819 B
TeX

{%- import 'macros.tex' as macros %}
\begin{tabu} to \linewidth {lX}
\toprule
Number of tests & {{ "{\\bf %d}" % testrun.number_of_tests }}\\
Number of successfull tests & {{ "{\\bf %d}" % testrun.number_of_successfull_tests }}\\
Number of possibly failed tests & \textcolor{% if testrun.number_of_possibly_failed_tests > 0%}{orange}{% else %}{black}{% endif %}{{ "{\\bf %d}" % testrun.number_of_possibly_failed_tests }}\\
Number of failed tests & \textcolor{% if testrun.number_of_failed_tests > 0%}{red}{% else %}{black}{% endif %}{{ "{\\bf %d}" % testrun.number_of_failed_tests }}\\
\midrule
Executionlevel & {{ macros.latex_filter(testrun.testcase_names.get('%d' % testrun.testcase_execution_level, 'unknown')) }}\\
Time consumption & {{ '%.3fs' % testrun.time_consumption }}\\
\bottomrule
\end{tabu}