Python Library Unittest
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

run_statistic.tex 819B

12345678910111213
  1. {%- import 'macros.tex' as macros %}
  2. \begin{tabu} to \linewidth {lX}
  3. \toprule
  4. Number of tests & {{ "{\\bf %d}" % testrun.number_of_tests }}\\
  5. Number of successfull tests & {{ "{\\bf %d}" % testrun.number_of_successfull_tests }}\\
  6. 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 }}\\
  7. Number of failed tests & \textcolor{% if testrun.number_of_failed_tests > 0%}{red}{% else %}{black}{% endif %}{{ "{\\bf %d}" % testrun.number_of_failed_tests }}\\
  8. \midrule
  9. Executionlevel & {{ macros.latex_filter(testrun.testcase_names.get('%d' % testrun.testcase_execution_level, 'unknown')) }}\\
  10. Time consumption & {{ '%.3fs' % testrun.time_consumption }}\\
  11. \bottomrule
  12. \end{tabu}