From 824d5e3b6954407a694f5739cbeb40f66324c8d7 Mon Sep 17 00:00:00 2001 From: InigoGutierrez Date: Wed, 14 Dec 2022 15:41:49 +0100 Subject: Developing Unit Testing. --- doc/tex/imago.tex | 10 ---------- doc/tex/systemAnalysis.tex | 31 +++++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 10 deletions(-) (limited to 'doc/tex') diff --git a/doc/tex/imago.tex b/doc/tex/imago.tex index 4b292f1..7978a0c 100644 --- a/doc/tex/imago.tex +++ b/doc/tex/imago.tex @@ -38,16 +38,6 @@ \newcommand{\lref}[1]{Listing~\ref{#1}} %\newcommand{\uurl}[1]{\underline{\url{#1}}} -%\newcommand{\acronim}[2] -%{ -% \iftoggle{#1} -% {#1} -% {#1 (#2)\toggletrue{#1}} -%} -% -%\newtoggle{SGF} -%\newcommand{\acrSGF}[0]{\acronim{SGF}{Smart Game Format}} - \newcommand{\tabitem}{~~\llap{\textbullet}~~} \begin{document} diff --git a/doc/tex/systemAnalysis.tex b/doc/tex/systemAnalysis.tex index bbae66e..ba5fbf1 100644 --- a/doc/tex/systemAnalysis.tex +++ b/doc/tex/systemAnalysis.tex @@ -878,6 +878,17 @@ The engine interface reads the input for generating a move as stated by the \subsection{Testing Plan Specification} +The Testing Plan will include four types of tests: + +\begin{itemize} + + \item Unitary Testing: for isolated code elements. + \item Integration Testing: for the collaboration between components. + \item System Testing: for the product as a whole. + \item Usability Testing: for the experience of users with the product. + +\end{itemize} + \subsubsection{Unitary Testing} Tests for the Python code are developed using the unittest \cite{python_unittest} @@ -888,4 +899,24 @@ The coverage of unit testing is checked with Coverage.py \cite{python_coverage}, which can by itself run the unittest tests and generate coverage reports based on the results. +The script used to run the tests is shown on \lref{lst:test} and its output on +\lref{lst:testOutput}. + % Maybe put an example report here? +\begin{listing}[h] + \inputminted{bash}{listings/test.sh} + \caption{Dense neural network model.} + \label{lst:test} +\end{listing} + +\begin{listing}[h] + \inputminted[fontsize=\footnotesize]{text}{listings/testOutput.txt} + \caption{Unitary testing output.} + \label{lst:testOutput} +\end{listing} + +\subsubsection{Integration Testing} + +\subsubsection{System Testing} + +\subsubsection{Usability Testing} -- cgit v1.2.1