Test Smart Brain implementation
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.

unittest.tex 1.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. {%- import 'macros.tex' as macros %}
  2. {%- include 'unittest_head.tex' %}
  3. {%- include 'unittest_titlepage.tex' %}
  4. \tableofcontents
  5. \newpage
  6. \section{Test System Information}
  7. {%- with system_information = data.system_information %}
  8. {%- include 'system.tex' %}
  9. {%- endwith %}
  10. \section{Summary}
  11. {%- with testrun = data %}
  12. {%- include 'run_statistic.tex' %}
  13. {%- endwith %}
  14. {% if data.number_of_failed_tests > 0 or data.number_of_possibly_failed_tests > 0%}
  15. \section{\textcolor{red}{Testcases (Failed)}}
  16. {%- for test_name in data.uid_list_sorted %}
  17. {% with testcase = data.testcases[test_name] %}
  18. {% if testcase.levelno > 20 %}
  19. \subsection{ {{macros.latex_filter(testcase.message)}} }
  20. {% with details = true %}
  21. {% include 'report_testcase.tex' %}
  22. {% endwith %}
  23. {% endif %}
  24. {% endwith %}
  25. {% endfor %}
  26. {% endif %}
  27. {% if data.number_of_successfull_tests > 0 %}
  28. \section{\textcolor{green}{Testcases (Success)}}
  29. {%- for test_name in data.uid_list_sorted %}
  30. {% with testcase = data.testcases[test_name] %}
  31. {% if testcase.levelno <= 20 %}
  32. \subsection{ {{macros.latex_filter(testcase.message)}} }
  33. {% with details = details %}
  34. {% include 'report_testcase.tex' %}
  35. {% endwith %}
  36. {% endif %}
  37. {% endwith %}
  38. {% endfor %}
  39. {% endif %}
  40. {% include 'unittest_foot.tex' %}