From 92f710554dac6fb75e0c3b4bcf4a0305ee4df4c3 Mon Sep 17 00:00:00 2001 From: jwansek Date: Thu, 3 Mar 2022 18:13:24 +0000 Subject: started working on rendering junitxml's nicely to pdfs --- templates/tex.jinja2 | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 templates/tex.jinja2 (limited to 'templates') diff --git a/templates/tex.jinja2 b/templates/tex.jinja2 new file mode 100644 index 0000000..bcc6aab --- /dev/null +++ b/templates/tex.jinja2 @@ -0,0 +1,26 @@ +\documentclass{article} + +\usepackage[margin=1in]{geometry} % margins +\usepackage{forest} % for the class tree +\usepackage{pdfpages} + +\author{((( student_no )))} +\title{((( name ))) - Automatic marking report} + +\begin{document} + +\maketitle +\section{Class Tree} + +\begin{figure}[h] + \centering + \begin{forest} + ((( recurse_class_tree_forest(class_tree)|indent(8, False) ))) + \end{forest} + \caption{Class inheritance tree} +\end{figure} + +\section{Tests} +\includepdf[pages={1-},scale=0.9]{((( junit_xml_to_html(test_results["junitxml"], student_no) )))} + +\end{document} \ No newline at end of file -- cgit v1.2.3