From 57c61505950e510ebb986d6a0ced03eabfaacd08 Mon Sep 17 00:00:00 2001
From: Jakob Olsson <jakob.olsson@iopsys.eu>
Date: Fri, 4 Oct 2019 09:47:30 +0200
Subject: [PATCH] README: add more explicit instructions for testing

---
 README.md | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md
index 24231e2..65dec5f 100644
--- a/README.md
+++ b/README.md
@@ -136,9 +136,19 @@ For example usage see ```test/api_test.c```.
 
 ## Tests
 
-During the development of this library cmocka unit testing was utilized. In total 28 unit tests are prepared, testing a varity of scenarios, with a focus on setters, these unit tests are furthermore tested with valgrind to ensure no memory leaks are present.
+During the development of this library cmocka unit testing was used. In total 32 unit tests are prepared, testing a varity of scenarios, with a focus on setters. Additionally, these unit tests are tested with valgrind to ensure no memory leaks are present.
 
-To run the tests perform the same steps as described under the build section and then run
+To run the tests perform the same steps as described under the build section, but this time prepare the cmake build type for debugging (note that if you are building from the same instance you will need to remove ```CMakeCache.txt```):
+
+```
+mkdir build
+cd build
+cmake ../ -DCMAKE_BUILD_TYPE=Debug
+make
+sudo make install
+```
+
+There should now be a test subdirectory under the build directory. Now run:
 
 ```
 sudo make test
-- 
GitLab