Added build template for phase 00
This commit is contained in:
parent
7c93ab7f20
commit
9548c87325
@ -1,4 +1,8 @@
|
||||
project_phase00.pdf
|
||||
Solution_Phase*_*.pdf
|
||||
Solution_Phase*_*.zip
|
||||
*.result.txt
|
||||
output.txt
|
||||
|
||||
## Core latex/pdflatex auxiliary files:
|
||||
*.aux
|
||||
*.lof
|
||||
|
21
project_task_sheets/phase_00/project_phase00_tasks/Makefile
Normal file
21
project_task_sheets/phase_00/project_phase00_tasks/Makefile
Normal file
@ -0,0 +1,21 @@
|
||||
phase = 00
|
||||
version = 1
|
||||
name = MichaelChen
|
||||
|
||||
solutionname = Solution_Phase$(phase)_$(name)
|
||||
target = $(solutionname)_V$(version).zip
|
||||
package = $(solutionname).pdf
|
||||
latexmkflags =
|
||||
|
||||
.PHONY : all dev
|
||||
|
||||
all : $(target)
|
||||
|
||||
dev : latexmkflags = -pvc
|
||||
dev : all
|
||||
|
||||
$(target) : $(package)
|
||||
zip -FSr $(target) $(package)
|
||||
|
||||
%.pdf : %.tex
|
||||
latexmk -jobname="$*" $(latexmkflags) -pdf $<
|
@ -0,0 +1,97 @@
|
||||
\documentclass[a4paper]{scrreprt}
|
||||
\usepackage[left=4cm,bottom=3cm,top=3cm,right=4cm,nohead,nofoot]{geometry}
|
||||
\usepackage{graphicx}
|
||||
\usepackage{tabularx}
|
||||
\usepackage{listings}
|
||||
\usepackage{enumitem}
|
||||
\usepackage{subcaption}
|
||||
|
||||
\usepackage{pgf}
|
||||
\usepackage{tikz}
|
||||
\usetikzlibrary{arrows,automata}
|
||||
|
||||
\usepackage{xparse}
|
||||
\usepackage{multirow}
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
\setlength{\textfloatsep}{16pt}
|
||||
|
||||
\renewcommand{\labelenumi}{\alph{enumi})}
|
||||
\renewcommand{\labelenumii}{\arabic{enumii}) }
|
||||
|
||||
\newcommand{\baseinfo}[5]{
|
||||
\begin{center}
|
||||
\begin{tabular}{p{15cm}r}
|
||||
\vspace{-4.5pt}{ \Large \bfseries #1} & \multirow{2}{*}{} \\[0.4cm]
|
||||
#2 & \\[0.5cm]
|
||||
\end{tabular}
|
||||
\end{center}
|
||||
\vspace{-18pt}\hrule\vspace{6pt}
|
||||
\begin{tabular}{ll}
|
||||
\textbf{Name:} & #4\\
|
||||
\textbf{Group:} & #5\\
|
||||
\end{tabular}
|
||||
\vspace{4pt}\hrule\vspace{2pt}
|
||||
\footnotesize \textbf{Software Testing} \hfil - \hfil Summer 2022 \hfil - \hfil #3 \hfil - \hfil Sibylle Schupp / Sascha Lehmann \hfil \\
|
||||
}
|
||||
|
||||
\newcounter{question}
|
||||
\NewDocumentEnvironment{question}{m o}{%
|
||||
\addtocounter{question}{1}%
|
||||
\paragraph{\textcolor{red}{Task~\arabic{question}} - #1\hfill\IfNoValueTF{#2}{}{[#2 P]}}
|
||||
\leavevmode\\%
|
||||
}{%
|
||||
\vskip 1em%
|
||||
}
|
||||
|
||||
\NewDocumentEnvironment{answer}{}{%
|
||||
\vspace{6pt}
|
||||
\leavevmode\\
|
||||
\textit{Answer:}\\[-0.25cm]
|
||||
{\color{red}\rule{\textwidth}{0.4mm}}
|
||||
}{%
|
||||
\leavevmode\\
|
||||
{\color{red}\rule{\textwidth}{0.4mm}}
|
||||
}
|
||||
|
||||
\newcommand{\projectinfo}[5]{
|
||||
\baseinfo{Project Phase #1 - Submission Sheet}{#2}{#3}{#4}{#5}
|
||||
}
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
|
||||
\def\name{[Add name here]}
|
||||
\def\group{\textit{Assigned in Phase 1}}
|
||||
|
||||
\begin{document}
|
||||
\projectinfo{0}{Software Testing - Getting Started with Eclipse and JUnit Tests\small}{\today}{\name}{\group}
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
%%% Task 2 %%%
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
\begin{question}{Learn to Understand given JUnit Tests}%[0]
|
||||
From the \texttt{src/test/java} folder, select 2 test files, and describe in your own words which parts of the system / program execution are tested, and which kind of failures may be targeted by these tests.
|
||||
\begin{answer}
|
||||
[TODO: Add answer here]
|
||||
\end{answer}
|
||||
\end{question}
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
%%% Task 3 %%%
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
\begin{question}{Write your own JUnit Test}%[0]
|
||||
Inside the \texttt{src/test/java} folder, create a new test file "CustomTest.java", and write your own JUnit test for one scenario picked from "scenarios.md" (located in the \texttt{doc/} folder). The test is supposed to call the sequence of functions corresponding to the steps described in the chosen scenario, and should include reasonable \textit{assertions} to check if the intermediate program states meet the scenario requirements.
|
||||
\begin{answer}
|
||||
[TODO: Add answer here]
|
||||
|
||||
\begin{lstlisting}[language=Java,belowskip=-0.8\baselineskip]
|
||||
/* Add code here */
|
||||
\end{lstlisting}
|
||||
% or: \lstinputlisting[language=Java,belowskip=-0.8\baselineskip]{file_name.java}
|
||||
\end{answer}
|
||||
\end{question}
|
||||
|
||||
\end{document}
|
Loading…
x
Reference in New Issue
Block a user