Skip to content
Snippets Groups Projects
Commit 235ccac1 authored by alicj's avatar alicj
Browse files

make images more clear, fix dash display problem

parent 163fa0ed
No related branches found
No related tags found
No related merge requests found
No preview for this file type
......@@ -406,19 +406,18 @@ class TestCircles:
\frametitle{Pytest plugin for measuring coverage}
\begin{itemize}
\item{\url{https://pypi.python.org/pypi/pytest-cov}}
\item{You can install it via pip: \texttt{pip install pytest-cov}}
\end{itemize}
\end{frame}
\begin{frame}[fragile]
\frametitle{Running the coverage plugin}
\begin{itemize}
\item{In the source code directory, run \texttt{pytest --cov}}
\end{itemize}
\item{In the source code directory, run \texttt{pytest -{}-cov}}
\item{
\begin{figure}[b]
{\includegraphics[width=6cm]{test-coverage}}
{\includegraphics[width=8cm]{test-coverage}}
\end{figure}
\begin{itemize}
}
\item{We can see that \texttt{CircleADT.py} has onlyl 51\% coverage. This is because only the methods \texttt{xcoord} and \texttt{ycoord} were tested}
\end{itemize}
\end{frame}
......
Tutorials/T05-PyUnit/slides/test-coverage.png

249 KiB | W: | H:

Tutorials/T05-PyUnit/slides/test-coverage.png

128 KiB | W: | H:

Tutorials/T05-PyUnit/slides/test-coverage.png
Tutorials/T05-PyUnit/slides/test-coverage.png
Tutorials/T05-PyUnit/slides/test-coverage.png
Tutorials/T05-PyUnit/slides/test-coverage.png
  • 2-up
  • Swipe
  • Onion skin
Tutorials/T05-PyUnit/slides/test-result-fail.png

95.2 KiB | W: | H:

Tutorials/T05-PyUnit/slides/test-result-fail.png

179 KiB | W: | H:

Tutorials/T05-PyUnit/slides/test-result-fail.png
Tutorials/T05-PyUnit/slides/test-result-fail.png
Tutorials/T05-PyUnit/slides/test-result-fail.png
Tutorials/T05-PyUnit/slides/test-result-fail.png
  • 2-up
  • Swipe
  • Onion skin
Tutorials/T05-PyUnit/slides/test-result.png

36 KiB | W: | H:

Tutorials/T05-PyUnit/slides/test-result.png

78.7 KiB | W: | H:

Tutorials/T05-PyUnit/slides/test-result.png
Tutorials/T05-PyUnit/slides/test-result.png
Tutorials/T05-PyUnit/slides/test-result.png
Tutorials/T05-PyUnit/slides/test-result.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -25,4 +25,4 @@ class TestCircles:
assert self.circle.xcoord() == 1
def test_xcoord_are_not_equal(self):
assert self.circle.xcoord() != 2
\ No newline at end of file
assert self.circle.xcoord() != 1
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment