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.

report_testcase.tex 1.3KB

123456789101112131415161718192021222324252627282930313233343536
  1. {%- import 'macros.tex' as macros %}
  2. \paragraph{Testsummary}\mbox{}\\
  3. This test was passed with the state: {\bf {{ macros.result(testcase.levelno) }}}.
  4. \begin{longtabu} to \linewidth {lX}
  5. \toprule
  6. Caller: & {{ macros.latex_filter(testcase.pathname) }} ({{ "%d" % testcase.lineno }})\\
  7. Start-Time: & {{ macros.latex_filter(testcase.time_start) }}\\
  8. Finished-Time: & {{ macros.latex_filter(testcase.time_finished) }}\\
  9. Time-Consumption & {{ '%.3fs' % (testcase.time_consumption) }}\\
  10. \midrule
  11. \multicolumn{2}{l}{\bf{Testresults:}}\\
  12. \midrule
  13. {%- for tLogger in testcase.testcaseLogger %}
  14. \bf{\,{{ macros.result(tLogger.levelno) }} } & {{ macros.latex_filter(tLogger.message) }}\\
  15. {%- endfor %}
  16. \bottomrule
  17. \end{longtabu}
  18. {% if details== true %}
  19. \paragraph{Testdetails}\mbox{}\\
  20. {%- for tLogger in testcase.testcaseLogger %}
  21. \begin{tabu} to \linewidth {lX}
  22. \toprule
  23. {\bf {{ macros.result(tLogger.levelno) }} } & {{ macros.latex_filter(tLogger.message) }}\\
  24. \bottomrule
  25. \end{tabu}
  26. {%- for mLogger in tLogger.moduleLogger %}
  27. \definecolor{shadecolor}{rgb}{ {{macros.bg_by_levelno(mLogger.levelno) }} }\begin{modulelog}[breaklines=true, breakanywhere=true]
  28. {{ mLogger.message }}
  29. \end{modulelog}
  30. \vspace*{-0.225cm}\pagebreak[1]
  31. {%- endfor %}
  32. \vspace*{2.5ex}
  33. {%- endfor %}
  34. {% endif %}